X-Y Plot Region

X-Y Plot Region - Extends SMath Studio with a X-Y Plot Region. - Messaggi

#301 Pubblicato: 27/08/2018 11:28:01
fedeghi

fedeghi

25 apprezzamenti in 112 post.

Gruppo: User

Just a quick reply to THANK you for fixing the plugin behavior in SMath Viewer.
#302 Pubblicato: 31/08/2018 13:29:34
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Uni, I really like the changes introduced to the X-Y Plot.

Just one observation:

Changes to the placeholder entries do trigger a vertex update when the region is left, whereas zoom operations or change of number of points don't.
In such cases, the plot is only updated after re-calculation of the whole sheet.

Even better would be a vertex update after each operation (without need to leave the region or the settings dialog), just as it works with the update of the plot attributes.

EDIT: Actually this is SS-2404
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
sergio 31/08/2018 14:19:00
#303 Pubblicato: 31/08/2018 18:42:45
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

I need some help as to what the restrictions for plottable expressions are.
General symbolic expressions don't seem to be allowed.
Aren't the expressions simplified before generating the plots?

Here an example which I don't understand:

xyplotbug3.png
xyplotbug3.sm (14,65 KiB) scaricato 1539 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#304 Pubblicato: 01/09/2018 00:07:50
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hi mkraska. Here a workaround, which seems that force the evaluation.
Best regards.
Alvaro.

Clipboard01.jpg
1 utenti hanno apprezzato questo post
Martin Kraska 01/09/2018 06:29:00
#305 Pubblicato: 01/09/2018 06:32:11
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote

Hi mkraska. Here a workaround, which seems that force the evaluation.
Best regards.
Alvaro.


Thanks a lot. It seems that in both cases, an assignment to a simple variable is sufficient (no function with parameter x required).


Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#306 Pubblicato: 01/09/2018 06:37:27
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

I filed some feature request in the tracking system:

- Remove spurious lines from function graphs (at singularities) (SS-3553)
- Optional axes cross (SS-3554)
- More consistent default settings for font size (SS-3555)
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2 utenti hanno apprezzato questo post
Вячеслав Мезенцев 05/09/2018 11:55:00, sergio 01/09/2018 07:55:00
#307 Pubblicato: 01/09/2018 19:59:21
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Hi mkraska. Here a workaround, which seems that force the evaluation.
Best regards.
Alvaro.



Tanks Alvaro.

The exclusive argument does not support vectorize operator.

ExclusivePlot.PNG

X_Y Plot wisely at(2).sm (16,93 KiB) scaricato 1457 volta(e).

#308 Pubblicato: 02/09/2018 05:50:26
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

X-Y plot doesn't handle undefined or non-numeric values (issue SS-3552)

It doesn't accept empty strings as empty plot objects. Is there an official way to specify an empty object? As a workaround, a constant number outside the y range will do. The example below uses 0, which adds a green line y=0.
Accepting "" as empty object would increase compatibility with the built-in 2D plot.

xyplot2.sm (18,86 KiB) scaricato 1498 volta(e).
xyplot2.png

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2 utenti hanno apprezzato questo post
frapuano 02/09/2018 07:56:00, Вячеслав Мезенцев 05/09/2018 12:15:00
#309 Pubblicato: 02/09/2018 05:56:45
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Some recommendations for the format of plot object specification:
  • Suppression of the outline can be done by setting the color to 0. It would be more natural to do it by setting the line width to 0 (which doesn't work) or to set the line style to "none" (which doesn't work either).
  • The reference point of arc and pie objects is the lower left corner of the full circle bounding box. It would be more natural to use the center as reference point, just as with circle and ellipse objects.


xyplot_015.png
xyplot.sm (200,14 KiB) scaricato 1584 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
4 utenti hanno apprezzato questo post
Вячеслав Мезенцев 05/09/2018 10:47:00, sergio 02/09/2018 12:12:00, NDTM Amarasekera 02/09/2018 06:37:00, frapuano 02/09/2018 07:56:00
#310 Pubblicato: 05/09/2018 10:41:57
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

I was in the mountains (High Alay). Now I back and we can continue.
Russia ☭ forever, Viacheslav N. Mezentsev
#311 Pubblicato: 05/09/2018 12:08:56
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Wrote

I need some help as to what the restrictions for plottable expressions are.
General symbolic expressions don't seem to be allowed.
Aren't the expressions simplified before generating the plots?


X-Y Plot nothing know about at() function. Region tries to parse the expression in the placeholder as is and without simplification. So it trying to draw at() function but not f(x). I'll try to add support for at().

Russia ☭ forever, Viacheslav N. Mezentsev
#312 Pubblicato: 05/09/2018 12:18:41
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote

Wrote

I need some help as to what the restrictions for plottable expressions are.
General symbolic expressions don't seem to be allowed.
Aren't the expressions simplified before generating the plots?


X-Y Plot nothing know about at() function. Region tries to parse the expression in the placeholder as is and without simplification. So it trying to draw at() function but not f(x). I'll try to add support for at().



Hi uni,

I hope you enjoyed the mountains.

Earlier in this thread it was proposed to just assign the list of plot objects to a dummy variable in case of evaluation problems.
I found this being quite robust. Many problems are solved this way.

This makes me thinking that a generic solution inside the plugin should exist (without adding support on a case by case base).
How about taking the list, add a dummy (hidden) variable with the preprocessed list to the context and then start over doing plotting stuff.
I may be wrong but eventually it is worth a try.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#313 Pubblicato: 05/09/2018 12:53:52
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Wrote

I hope you enjoyed the mountains.


It was a sporting journey (7 members) with special training and tools. Hard, dangerous, but interesting. In Russia there remained a system of sports tourism (from the USSR). Teams from different regions compete in the passage of various mountain routes.

As for using "a case by case base". I reworked the parsing algorithm to support all features and made it more or less understandable. Preprocessing not uses when parsing because of information about the structure of the expression is lost. Without parsing is too hard to support all features. But time to time I'm trying to make all these things more simple.

Russia ☭ forever, Viacheslav N. Mezentsev
2 utenti hanno apprezzato questo post
frapuano 05/09/2018 14:14:00, Davide Carpi 05/09/2018 14:01:00
#314 Pubblicato: 06/09/2018 10:24:16
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Updated. Changes:
- default font sizes reduced (SS-3555);
- added support for the at() function as a simple expression (#303);
- empty objects ( "" ) added (#308);
- changed points format for arc and pie shapes (#309);
- line width for shapes can be zero and color can be "none" (#309).
Russia ☭ forever, Viacheslav N. Mezentsev
3 utenti hanno apprezzato questo post
sergio 06/09/2018 10:40:00, Martin Kraska 06/09/2018 11:51:00, frapuano 06/09/2018 14:57:00
#315 Pubblicato: 27/09/2018 10:20:09
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Geometric shapes seem to be broken in 6839

2018-09-27 15_16_34-SMath Studio 0.99.6839 - [Section 2D plots XY Plot Plugin.sm].png
Section 2D plots XY Plot Plugin.sm (123,36 KiB) scaricato 1548 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#316 Pubblicato: 27/09/2018 12:43:54
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Wrote

List of changes (between 0.99.6823 and 0.99.6839 versions)
Corrections
- Matrix transpose fixed for nested matrices;


You need to transpose points vector (Transpose bug).

2018-09-24_23-45-46.png
Russia ☭ forever, Viacheslav N. Mezentsev
#317 Pubblicato: 27/09/2018 18:47:23
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote

Wrote

List of changes (between 0.99.6823 and 0.99.6839 versions)
Corrections
- Matrix transpose fixed for nested matrices;


You need to transpose points vector (Transpose bug).

May be a matter of taste, but why not using linear indexing for picking numbers from the dimensions argument? This would have prevented the issue and the argument list clearly looks better without transpose operator. This applies to the whole object as well as to the second argument.
You then wouldn't need even a single transpose operator in the above example.

The less picky the functions are, the better is the user experience.

In the case of polygons and the like I see that you need some convention and it is good to stick to the one used in generic 2-column matrix plotting.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#318 Pubblicato: 27/09/2018 19:28:48
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

I think that this is not a big problem, because you can always think of something.

2018-09-28_03-28-05.png
Russia ☭ forever, Viacheslav N. Mezentsev
#319 Pubblicato: 28/09/2018 06:26:48
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Updated.

- Smoothing property removed;
- AntiAlias property added for line and symbol style;
- issue with the reversed limits of the axis is fixed;
- refactored.
Russia ☭ forever, Viacheslav N. Mezentsev
#320 Pubblicato: 03/10/2018 16:38:25
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Here is an example with strange behaviour of XY-plot.
1. In the second plot only one ellipse is drawn.
2. If the first plot is deactivated, the second plot fails completely
3. Again I had to use a dummy assignment to enforce context substitution

2018-10-03 21_28_22-SMath Studio 0.99.6839 - [Example NewtonRaphson2.sm_].png
Example NewtonRaphson2.sm (36,15 KiB) scaricato 1483 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2 utenti hanno apprezzato questo post
frapuano 17/11/2018 05:53:00, Вячеслав Мезенцев 03/10/2018 18:12:00
  • Nuovi post
  • Nessun nuovo post