X-Y Plot Region

X-Y Plot Region - Extends SMath Studio with a X-Y Plot Region. - 消息

#21 已发布: 2013/4/28 12:57:07
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Wrote

Could global variables be an option?

The user might define or display values of settings like
XYPlot.xmin:0
XYPlot.xmax:3'm -> this would give the independent variable a unit
XYPlot.ymin:0
XYPlot.ymax:"auto" (auto-scaling)
XYPlot.xaxis:"log" or "lin"
XYPlot.title:num2str(n)
XYPlot.xtics:0,5*'m

etc. This would be quite transparent and readable, but could be hidden in collapsable regions if required.
Settings in the context menu might change or override the variable values or restore them to defaults.
Units could be automatically added to the default axis label if appropriate. You could, however, leave proper annotation in the user's responsibility.

Sticking to some naming convention (e.g. gnuplot) would facilitate the usage.



I think that the easiest way it's to append a unit tag (always or when needed) below the axes tag; something like [ m ] [ - ] [ Pa ]
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#22 已发布: 2013/4/29 16:03:12
Fridel Selitsky

Fridel Selitsky

520个赞,共451个帖子。

组: User

Eхaple using XYPlot plugin:

PlotPlugin.smz (9.49 KiB)已下载 1843 次。
1位用户喜欢此帖子
Davide Carpi 2013/4/29 17:44:00
#23 已发布: 2013/4/29 16:52:26
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Guys, do not rush. The new version will have a slightly different format in the sm-file and your works may not be loaded.
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
Davide Carpi 2013/4/29 17:02:00
#24 已发布: 2013/4/30 03:45:27
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Updated.

XYPlotRegion_screen7.png
Russia ☭ forever, Viacheslav N. Mezentsev
4位用户喜欢此帖子
Martin Kraska 2013/4/30 10:44:00, Fridel Selitsky 2013/4/30 04:04:00, Radovan Omorjan 2013/4/30 04:14:00, Davide Carpi 2013/4/30 08:44:00
#25 已发布: 2013/4/30 04:19:22
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Hello uni,

To be honest, when I saw this picture from the plugin update - I almost remained speechless

THIS IS AMAZING!!!

A small issue on my 64bit computer when I opened your example file - the first picture, and my playing on the second

Best Wishes,
Radovan
xyplot2.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#26 已发布: 2013/4/30 04:28:23
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Wrote


A small issue on my 64bit computer when I opened your example file - the first picture, and my playing on the second

Best Wishes,
Radovan



When you save a file and open it the error also appears?

Show me this line from any of your file or attach it completely:
<grid gridcolor="192; 192; 255" gridpattern="Dash" gridthickness="1" isxgrid="true" isygrid="true" />
Russia ☭ forever, Viacheslav N. Mezentsev
#27 已发布: 2013/4/30 04:54:12
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Wrote

Wrote


A small issue on my 64bit computer when I opened your example file - the first picture, and my playing on the second

Best Wishes,
Radovan



When you save a file and open it the error also appears?


I can not open your example file. If I make my own (like the sample I was playing with) it seems Ok. I can save it and open it again

Wrote

Show me this line from any of your file or attach it completely:

<grid gridcolor="192; 192; 255" gridpattern="Dash" gridthickness="1" isxgrid="true" isygrid="true" />



I found only this one in the first example I've made.



If you would like me to try anything else in particular, just let me know

Regards,
Radovan

EDIT: Very good news - after a long time there were Language additions (Lang) . I hope that this amazing plugin will have language translations as well
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#28 已发布: 2013/4/30 05:12:22
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Wrote

Wrote

Wrote


A small issue on my 64bit computer when I opened your example file - the first picture, and my playing on the second

Best Wishes,
Radovan



When you save a file and open it the error also appears?


I can not open your example file. If I make my own (like the sample I was playing with) it seems Ok. I can save it and open it again

Wrote

Show me this line from any of your file or attach it completely:

<grid gridcolor="192; 192; 255" gridpattern="Dash" gridthickness="1" isxgrid="true" isygrid="true" />



I found only this one in the first example I've made.



If you would like me to try anything else in particular, just let me know



Try a different color, and not a system color, something unusual. This error means that the saving format color will be different on different systems, it is bad (for example, I can't open your file).

Wrote

EDIT: Very good news - after a long time there were Language additions (Lang) . I hope that this amazing plugin will have language translations as well


Unfortunately, I'm afraid not. I don't know how to make a multi-language interface yet.
Russia ☭ forever, Viacheslav N. Mezentsev
#29 已发布: 2013/4/30 05:50:55
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Here it is,

I tried some custom colors. It is working for me quite well.
Here is the picture and the file which produces it.

Regards,
Radovan

P.S. About the language interface, maybe Andrey can do something about it.
proba_colors.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#30 已发布: 2013/4/30 05:59:05
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Amazing work uni!

Wrote

This error means that the saving format color will be different on different systems, it is bad (for example, I can't open your file).


You can try to implement the GlobalParams colors functions of Andrey (f.e. the GlobalParams.GetColorByName())

Wrote

Unfortunately, I'm afraid not. I don't know how to make a multi-language interface yet.


If may help currently I use this class Translator.cs; I think It's the best approach to multilanguage for an external plugin.

Wrote

I tried some custom colors. It is working for me quite well.


Does not work for me...


best regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#31 已发布: 2013/4/30 06:20:58
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Yeah, that's the difference (XY Plot. Example 1.sm):
<grid gridcolor="192; 192; 255" gridpattern="Dash" gridthickness="1" isxgrid="true" isygrid="true" />
and proba_colors.sm:
<grid gridcolor="255, 128, 128" gridpattern="Dash" gridthickness="1" isxgrid="true" isygrid="true" />
Different system settings. I will correct it. Do not use random colors until I fix it.

引用

If may help currently I use this class Translator.cs; I think It's the best approach to multilanguage for an external plugin.


Here is another problem. I can't use this technique for translating expressions.
Russia ☭ forever, Viacheslav N. Mezentsev
#32 已发布: 2013/4/30 07:28:22
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

I made small changes. Can you try again (XYPlotRegion_20130430r1).
Russia ☭ forever, Viacheslav N. Mezentsev
#33 已发布: 2013/4/30 09:07:44
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Wrote

I made small changes. Can you try again (XYPlotRegion_20130430r1).


Hmm...it seems some other issue appeared now. I think some fonts issue is involved. This is an error when I tried to open your example file.

However, I can still use it in my computer.

Regards,
Radovan
XYplotfont.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#34 已发布: 2013/4/30 10:02:04
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Ok, it will take time to solve this problem.
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
Radovan Omorjan 2013/4/30 10:55:00
#35 已发布: 2013/4/30 10:12:27
Fridel Selitsky

Fridel Selitsky

520个赞,共451个帖子。

组: User

Wrote

Guys, do not rush. The new version will have a slightly different format in the sm-file and your works may not be loaded.


Updated.

PlotPlugin.smz (9.49 KiB)已下载 1847 次。
2位用户喜欢此帖子
Вячеслав Мезенцев 2013/4/30 10:39:00, Radovan Omorjan 2013/4/30 10:48:00
#36 已发布: 2013/4/30 10:53:17
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Wrote

Ok, it will take time to solve this problem.


Just take your time . We can still make new plots and test it (at least I can).

I tried the file from the post above by Ber7 as well with those nice looking plots. The same "font parsing problem" error appeared.

Any other experience?

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#37 已发布: 2013/4/30 11:04:03
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Great work, uni!

some issues:
- tick spacing should start at zero axis value (now starts at min limit)
- number format for y axis tick values

Double click to access the property page is nice.




xyplot1.sm (4.34 KiB)已下载 1757 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
#38 已发布: 2013/4/30 11:17:52
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Wrote

Wrote

Ok, it will take time to solve this problem.


Just take your time . We can still make new plots and test it (at least I can).

I tried the file from the post above by Ber7 as well with those nice looking plots. The same "font parsing problem" error appeared.

Any other experience?

Regards,
Radovan



This is global problem and I need to think about how to resolve it correctly.
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
Radovan Omorjan 2013/4/30 11:19:00
#39 已发布: 2013/4/30 11:20:34
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Just in case to mention that I opened the file with two plots made by Martin.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#40 已发布: 2013/4/30 11:25:03
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Wrote

Just in case to mention that I opened the file with two plots made by Martin.

Regards,
Radovan



It can be said in other words. It is a problem of globalization, when you need to share files between countries with different regional standards. I should consult with Andrey to find out how to do it right.
Russia ☭ forever, Viacheslav N. Mezentsev
  • 有新帖
  • 无新帖