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

Notification

Icon
Error

29 Pages«<26272829>
Options
Go to last post Go to first unread
Offline Kenny Lemens  
#541 Posted : 18 September 2024 04:39:15(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 144
Man
United States
Location: Wisconsin

Was thanked: 67 time(s) in 42 post(s)
Originally Posted by: kaizh Go to Quoted Post
thanks uni , it's so convenient to set properties for figures now ,
i wil attach my usage for late-comers to reference .
i decide to make it be a snippet , whenever there is a xyplot i'll insert this snippet

Greetings,

With regards to the list of properties you created, I have some updates to your "Legend"
  • (...).Legend.TextColor
  • (...).Legend.LegendBackColor
  • (...).Legend.LegendBorderColor
  • (...).Legend.LegendPosition
  • (...).Legend.LegendFont

Please take note of the last one as I couldn't get 'position' to work, but 'legendPosition' did provide values. Please note: I am running an older version.

I also believe you are missing 「(...).Grid.IsY2Grid」, which would control drawing the gridlines per the Y2 Axis.

May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ

Edited by user 18 September 2024 05:12:25(UTC)  | Reason: Additional Properties, Noted in brown text

"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
Offline mkraska  
#542 Posted : 19 September 2024 02:21:22(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,023
Germany

Was thanked: 1153 time(s) in 739 post(s)
Originally Posted by: uni Go to Quoted Post
As an experiment, I may add this feature.

xyplot-description-properties.PNG


I guess you propose to read the settings from the description. I'd like this feature very much, yet, how to include calculated values?
I'd also propose a Hotkey or context menu item to send the current settings to the description as a template
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Kenny Lemens  
#543 Posted : 19 September 2024 03:04:21(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 144
Man
United States
Location: Wisconsin

Was thanked: 67 time(s) in 42 post(s)
Greetings,

I like the thought of declaring such settings in the description field, but I would recommend against it. There will be several issues with such an implementation:
  • There is a discrepancy between special/encoded characters, may need to manually paste text in for best affect.
  • This area doesn't provide the best Copy/Paste experience.
  • There is no dynamic assist when typing variables.
  • Easy to overlook the description field, may create frustration if person isn't aware that the description is declaring settings.


Instead, I would recommend placement of these settings into the input; since setprop() has a Global influence there is no issue with this placement:
SMath_SetProp()_Placement.gif


May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
Offline uni  
#544 Posted : 20 September 2024 04:38:16(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
A single quote can be used instead of or together with a period.

xyplot-description-properties-with-single-quote.png

Other symbols are also available:

Code:

XYPlot#XAxis#XMin:x.min
XYPlot%XAxis%XMin:x.min
XYPlot~XAxis~XMin:x.min

Edited by user 20 September 2024 04:59:04(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#545 Posted : 26 September 2024 08:30:07(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
SMath Studio compatibility

Plugin updated.

Changes:

- added support for image drawing;
- added support for settings inside the description.

I haven't decided yet how to describe the set of properties in the description. We need to experiment a little.
I can try to display the picture from the document if it is marked with tag

Click to enlarge Click to enlarge

xyplot-drawimage.sm (9kb) downloaded 14 time(s).
xyplot-drawimage.pdf (29kb) downloaded 10 time(s).

Edited by user 26 September 2024 10:24:58(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 26/09/2024(UTC),  on 27/09/2024(UTC)
Offline Razonar  
#546 Posted : 26 September 2024 10:55:47(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,432
Uruguay

Was thanked: 885 time(s) in 561 post(s)
Originally Posted by: uni Go to Quoted Post
...
- added support for image drawing; ...


Hi Viacheslav. Thanks, it works fine. One question: Is there a way to use the RGB matrix of the image, instead of the file?

Best regards.
Alvaro.
Offline uni  
#547 Posted : 26 September 2024 11:31:57(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
Yes, this is possible, I will add this feature in the next update.

Quote:
I can try to display the picture from the document if it is marked with tag


Something like this

xyplot-drawimage-from-region.jpg

Edited by user 26 September 2024 21:43:54(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 26/09/2024(UTC),  on 27/09/2024(UTC)
Offline uni  
#548 Posted : 27 September 2024 10:01:00(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
Soon ... more bugs added Good

The release manager is down again, so just an announcement.

It is also possible to draw svg icon sets (favicon, …), but I have not yet decided how to encode them.

Click to enlarge Click to enlarge Click to enlarge

xyplot-drawimage-file.pdf (39kb) downloaded 7 time(s).
xyplot-drawimage-tag.pdf (40kb) downloaded 7 time(s).
xyplot-drawimage-mat.pdf (42kb) downloaded 9 time(s).

Edited by user 27 September 2024 10:22:22(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#549 Posted : 01 October 2024 05:38:33(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
SMath Studio compatibility

Plugin updated. Beta

Changes:

- added support for image output (file, tag, mat);
- the oldest method of changing component properties has been removed;
- fixed support for setting properties in the component description;
- minor improvements.

xyplot-drawimage-tag.png (940kb) downloaded 10 time(s).

xyplot-drawimage-file.sm (8kb) downloaded 5 time(s).
xyplot-drawimage-tag.sm (68kb) downloaded 5 time(s).
xyplot-drawimage-mat.sm (9kb) downloaded 5 time(s).

Edited by user 01 October 2024 06:39:16(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 01/10/2024(UTC),  on 01/10/2024(UTC)
Offline Razonar  
#550 Posted : 01 October 2024 15:41:03(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,432
Uruguay

Was thanked: 885 time(s) in 561 post(s)
Originally Posted by: uni Go to Quoted Post
... Plugin updated. Beta
- added support for image output (file, tag, mat); ...


Hi Viacheslav. About 'mat' method, I can't read an image with READRGB, and with image2rgb I don't know how to plot it as RGB (the matrix output from image2rgb is always 1 row by 3 columns containing the 3 matrices R, G and B )

Best regards.
Alvaro.
Offline uni  
#551 Posted : 01 October 2024 19:01:38(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
Only a gray image is supported now, I think about how to add RGB matrices. Functions for working with images I will fix.
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 02/10/2024(UTC)
Offline fedeghi  
#552 Posted : 01 October 2024 22:54:10(UTC)
fedeghi


Rank: Advanced Member

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

Was thanked: 24 time(s) in 16 post(s)
Originally Posted by: uni Go to Quoted Post

- the oldest method of changing component properties has been removed;


Hi Uni and fellow Smath users,
does this above imply that "setprop" is now not only the preferred way to set plot properties, but also the only one?
I still didn't study it, in case I need to make my homeworks as soon as possible since I have some tools that used the old (deprecated?) way of setting props and autoscaling plots.

Do you have an updated sample file to share, that allows to identify the new way of working with plot properties?

Thanks
Offline uni  
#553 Posted : 01 October 2024 23:39:21(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
It is not necessary to use the setprop() function, now you can set the component properties directly.

xyplot-set-properties-min-example.png

xyplot-set-properties-min-example.sm (11kb) downloaded 3 time(s).
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 02/10/2024(UTC)
Offline uni  
#554 Posted : 01 October 2024 23:48:49(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
To avoid editing documents, you can try this method. But you need to set a value for the Name property of the component.

xyplot-set-properties-support-old-style.png

xyplot-set-properties-support-old-style.sm (7kb) downloaded 3 time(s).
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 02/10/2024(UTC)
Offline fedeghi  
#555 Posted : 02 October 2024 00:23:18(UTC)
fedeghi


Rank: Advanced Member

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

Was thanked: 24 time(s) in 16 post(s)
Thanks for this quick recap!
Offline uni  
#556 Posted : 02 October 2024 02:46:39(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
I can't build a fixed MathcadToolbox plugin. When it becomes possible, I will release a new version.

Click to enlarge

xyplot-drawimage-mat-rgb.pdf (87kb) downloaded 7 time(s).
xyplot-drawimage-mat-rgb.sm (19kb) downloaded 5 time(s).
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 02/10/2024(UTC)
Offline uni  
#557 Posted : 02 October 2024 05:03:39(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
SMath Studio compatibility

Plugin updated. Beta

Changes:

- added support for rgb image drawing;
- the priority of setting properties has been changed (description - first).

Now the settings from the description are applied first and the settings from the document are applied second. This is done because it is much more difficult to edit the component description than the document itself. If the description is hidden, the properties present there can be overwritten using the settings from the document. Otherwise, as shown above, implicitly changing the properties can become a problem.

Later I will add the ability to copy property sets to a document from the settings form.

Still no fixed features from the MathcadToolbox plugin (READRGB(), ...).

Edited by user 02 October 2024 05:07:09(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 02/10/2024(UTC),  on 03/10/2024(UTC)
Offline uni  
#558 Posted : 02 October 2024 07:59:22(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
I think it is possible to draw a line of text in a similar way. The interface for such a call should also be consistent with the general approach for shapes.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline Razonar  
#559 Posted : 03 October 2024 05:38:55(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,432
Uruguay

Was thanked: 885 time(s) in 561 post(s)
Hi Viacheslav.

It would be very interesting to be able to obtain the RGB matrix of the image within the Mathcad region, perhaps you can incorporate that option in READIMG(#uni), READ_RED(#uni), ... etc. of the Mathcad toolbox plugin. Not only would it serve to avoid having to attach an external file, but it would also be a way to preserve the changes within the image (those that can be made with the mouse after selecting the "edit" option).

It would also be very useful to have a function similar to Matlab's ginput, such as [X Y]:=XYInput("plot",n) returning two X,Y vectors with n components. The trigger for the action of choosing points could be from the context menu by right clicking on the XYPlot or in some similar way.

Best regards.
Offline uni  
#560 Posted : 03 October 2024 07:17:31(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1307 time(s) in 766 post(s)
Originally Posted by: Razonar Go to Quoted Post
It would be very interesting to be able to obtain the RGB matrix of the image within the Mathcad region, perhaps you can incorporate that option in READIMG(#uni), READ_RED(#uni), ... etc. of the Mathcad toolbox plugin. Not only would it serve to avoid having to attach an external file, but it would also be a way to preserve the changes within the image (those that can be made with the mouse after selecting the "edit" option).

I didn't do it right away because the images form very large matrices. Regular functions don't have access to the sheet area and the list of components, so it can't be done directly. But there is a way to do it differently. We can reread the document itself manually and parse it. I've done this before. So, I think it will be possible to add new functionality to the image handling functions, but only where I am a developer. It should work where there will be read access to the document itself.

Originally Posted by: Razonar Go to Quoted Post
It would also be very useful to have a function similar to Matlab's ginput, such as [X Y]:=XYInput("plot",n) returning two X,Y vectors with n components. The trigger for the action of choosing points could be from the context menu by right clicking on the XYPlot or in some similar way.

As for entering a list of points, this is also possible. I'll even say more, I had thoughts of adding horizontal and vertical markers in any quantity. It's not difficult to draw them, the problem is in outputting information from them to the document. We need to figure out how to do it beautifully and universally.

Click to enlarge

Edited by user 03 October 2024 07:23:19(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 04/10/2024(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)
29 Pages«<26272829>
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.