Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

16 Pages«<141516
Options
Go to last post Go to first unread
Offline fedeghi  
#301 Posted : 27 August 2018 17:28:01(UTC)
fedeghi


Rank: Member

Groups: Registered
Joined: 14/09/2013(UTC)
Posts: 17
Italy

Was thanked: 8 time(s) in 3 post(s)
Just a quick reply to THANK you for fixing the plugin behavior in SMath Viewer.
Offline mkraska  
#302 Posted : 31 August 2018 19:29:34(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,421
Germany

Was thanked: 734 time(s) in 476 post(s)
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

Edited by user 31 August 2018 23:32:59(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 31/08/2018(UTC)
Offline mkraska  
#303 Posted : 01 September 2018 00:42:45(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,421
Germany

Was thanked: 734 time(s) in 476 post(s)
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 (15kb) downloaded 12 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Offline Razonar  
#304 Posted : 01 September 2018 06:07:50(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 146
Uruguay

Was thanked: 28 time(s) in 21 post(s)
Hi mkraska. Here a workaround, which seems that force the evaluation.
Best regards.
Alvaro.

Clipboard01.jpg
thanks 1 user thanked Razonar for this useful post.
on 01/09/2018(UTC)
Offline mkraska  
#305 Posted : 01 September 2018 12:32:11(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,421
Germany

Was thanked: 734 time(s) in 476 post(s)
Originally Posted by: Razonar Go to Quoted Post
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).


Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Offline mkraska  
#306 Posted : 01 September 2018 12:37:27(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,421
Germany

Was thanked: 734 time(s) in 476 post(s)
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)
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 01/09/2018(UTC),  on 05/09/2018(UTC)
Offline Jean Giraud  
#307 Posted : 02 September 2018 01:59:21(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 2,945
Canada

Was thanked: 574 time(s) in 444 post(s)
Originally Posted by: Razonar Go to Quoted Post
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 (17kb) downloaded 6 time(s).

Offline mkraska  
#308 Posted : 02 September 2018 11:50:26(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,421
Germany

Was thanked: 734 time(s) in 476 post(s)
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 (19kb) downloaded 5 time(s).
xyplot2.png

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 02/09/2018(UTC),  on 05/09/2018(UTC)
Offline mkraska  
#309 Posted : 02 September 2018 11:56:45(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,421
Germany

Was thanked: 734 time(s) in 476 post(s)
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 (201kb) downloaded 22 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
thanks 4 users thanked mkraska for this useful post.
on 02/09/2018(UTC),  on 02/09/2018(UTC),  on 02/09/2018(UTC),  on 05/09/2018(UTC)
Offline uni  
#310 Posted : 05 September 2018 16:41:57(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 794
Man
Russian Federation

Was thanked: 676 time(s) in 407 post(s)
I was in the mountains (High Alay). Now I back and we can continue.
Russia forever!
Viacheslav N. Mezentsev
💰 You can support me for plugins development: https://paypal.me/viacheslavmezentsev
Offline uni  
#311 Posted : 05 September 2018 18:08:56(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 794
Man
Russian Federation

Was thanked: 676 time(s) in 407 post(s)
Originally Posted by: mkraska Go to Quoted Post
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
💰 You can support me for plugins development: https://paypal.me/viacheslavmezentsev
Offline mkraska  
#312 Posted : 05 September 2018 18:18:41(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,421
Germany

Was thanked: 734 time(s) in 476 post(s)
Originally Posted by: uni Go to Quoted Post
Originally Posted by: mkraska Go to Quoted Post
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.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Offline uni  
#313 Posted : 05 September 2018 18:53:52(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 794
Man
Russian Federation

Was thanked: 676 time(s) in 407 post(s)
Originally Posted by: mkraska Go to Quoted Post
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
💰 You can support me for plugins development: https://paypal.me/viacheslavmezentsev
thanks 2 users thanked uni for this useful post.
on 05/09/2018(UTC),  on 05/09/2018(UTC)
Offline uni  
#314 Posted : 06 September 2018 16:24:16(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 794
Man
Russian Federation

Was thanked: 676 time(s) in 407 post(s)
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).

Edited by user 06 September 2018 16:35:51(UTC)  | Reason: Not specified

Russia forever!
Viacheslav N. Mezentsev
💰 You can support me for plugins development: https://paypal.me/viacheslavmezentsev
thanks 3 users thanked uni for this useful post.
on 06/09/2018(UTC),  on 06/09/2018(UTC),  on 06/09/2018(UTC)
Users browsing this topic
Similar Topics
X-Y Plot Region Plugin (Extensions)
by ndtma 24/06/2018 06:00:49(UTC)
X-Y Plot Region Plugin Problem (Questions)
by ndtma 20/06/2018 19:38:44(UTC)
16 Pages«<141516
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.