X-Y Plot Region

X-Y Plot Region - Extends SMath Studio with a X-Y Plot Region. - Сообщения

#41 Опубликовано: 30.04.2013 12:32:13
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

...when you need to share files between countries with different regional standards...



I guess that's what we do all the time in the forum...

localization is important for me, as I use SMath for teaching and I want the students to stick to national standards (or international ones and that includes writing in english, which most of them feel not comfortable with - that's why the handbook is in german).

Due to the central location of settings it is not easy to maintain uptodate installations with different settings for testing. I feel much relieved by using the portable ("linux" ) version with plugins, that allows installation of plugins on the fly without being asked for admin rights. However, this version does not have any settings file in the install dir.

Another issue:
I get problems with co-existing plot regions from the plugin and smath internal. See attached file. The first image is generated by save as and seems to be ok, the display however, is buggy (second image).

This does not happen with the example by Ber7.
demo2sc.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#42 Опубликовано: 30.04.2013 12:41:30
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Wrote


Another issue:
I get problems with co-existing plot regions from the plugin and smath internal. See attached file. This does not happen with the example by Ber7.


Yes, I noticed that. Also, when recalculating the document a lot of times artifacts appear and region disappear. I don't know what's happening.
Russia ☭ forever, Viacheslav N. Mezentsev
#43 Опубликовано: 30.04.2013 13:48:19
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Update: + Expand/Collapse All in formatting form context menu.
Let's look again. Create each of you a simple sm-file (not smz) with one X-Y Plot and attach it to your message.
Russia ☭ forever, Viacheslav N. Mezentsev
#44 Опубликовано: 30.04.2013 14:30:34
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello uni,

I managed to open your example file for the first time - find attached (just made a small correction in the title)

As you asked, I attached a new simple plot (find attached please)

If you need anything else, just let us know.

By the way, I do not quite understand the Add, Remove under Traces|Members (Chart2Dlib.DataSeries). Add will issue an error, Remove will remove formatting. I suppose this option is under development.

Regards,
Radovan

XYPlot.omorr.sm (3 КиБ) скачан 108 раз(а).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
#45 Опубликовано: 30.04.2013 15:00:30
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Here is my test file.

- formatting problem persists,
- undefined values (ln for negative x) add a spurious dataset and disable plotting.
- wrong position of (x-2)^2 curve and matrix in the plugin demo EDIT: they belong to y2, I did not guess that from the plot and failed to check prior to complaining...)

Some of the properties can be changed with the mousewheel. Some of them seem to loose mouse focus after a change, such that the mousewheel does not have any effect until the cell is clicked again (e.g. in the line color tab )

I would suggest to make the user colors default tab in the line color property. The 2D color chooser is much more convenient than the huge lists (web, system)

Could the dataseries properties be directly exposed in the main screen?
xy2.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
#46 Опубликовано: 30.04.2013 15:03:42
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Wrote

Hello uni,

I managed to open your example file for the first time - find attached (just made a small correction in the title)

As you asked, I attached a new simple plot (find attached please)

If you need anything else, just let us know.

By the way, I do not quite understand the Add, Remove under Traces|Members (Chart2Dlib.DataSeries). Add will issue an error, Remove will remove formatting. I suppose this option is under development.

Regards,
Radovan


Ok, now I can open your files (but for the second file StatisticalTools plugin require). As for the Add, Remove under Traces|Members (Chart2Dlib.DataSeries) - do not use this feature (it should not be there).
Russia ☭ forever, Viacheslav N. Mezentsev
#47 Опубликовано: 30.04.2013 15:06:33
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Цитата

wrong position of (x-2)^2 curve and matrix in the plugin demo


And what about y2 axis? [IsY2Data = true] for these curves.

P.S.
Цитата

- formatting problem persists,
- undefined values (ln for negative x) add a spurious dataset and disable plotting.


Working on it.

As for the formatting form I use standart propertyGrid control. It works fully automaticaly and really hard for me change it behavior for now. May be in future.
These examples I can open too.
Russia ☭ forever, Viacheslav N. Mezentsev
#48 Опубликовано: 30.04.2013 15:21:06
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

Цитата

wrong position of (x-2)^2 curve and matrix in the plugin demo


And what about y2 axis? [IsY2Data = true] for these curves.



Oh, yes, you are right. Should have taken some more time to understand the picture.

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#49 Опубликовано: 30.04.2013 16:27:10
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

I tried it in Xubuntu. It seema to work pretty well, in spite of Mono problems reported earlier.
I managed to save the file this time (Xubuntu upgraded to 13.04).

Regards,
Radovan

[ALBUMIMG]89[/ALBUMIMG]



XY Plot. Example-xubuntu.sm (6 КиБ) скачан 98 раз(а).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
#50 Опубликовано: 30.04.2013 23:02:20
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Updated: Fixed a display error. Small changes in the format again (I hope they last).

[albumimg]90[/albumimg]
X-Y Plot. Hilbert Curve.sm (10 КиБ) скачан 113 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
2 пользователям понравился этот пост
Davide Carpi 02.05.2013 19:40:00, Martin Kraska 01.05.2013 06:20:00
#51 Опубликовано: 01.05.2013 04:54:21
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

Updated: Fixed a display error. Small changes in the format again (I hope they last).



I had no problems to read files from the previous version. However, in one case, the commas (decimal delimiters) from the axes limit values had gone. Once corrected, they persist upon save and open.

I confirm that the problem of co-existing plots (internal and plugin) is fixed.

Remaining issues so far:
- Tick value formatting
- Tick origin (might be a feature, which I would request to change)
- Unhandled NaN values (in the internal plot region, a convenient way to limit a curve in x-direction is to divide by corresponding boolean expressions)

Would you recommend to start serious work (like Handbook examples...) based on the current file format? That would imply the hope that future versions shall be downward compatible w.r.t. file format.
demo4.sm (5 КиБ) скачан 98 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#52 Опубликовано: 01.05.2013 06:10:07
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

I experienced SMath crashes when accidentally put zero or negative values for X-Axis|XTick, Y-Axis|YTick . I think this is not so important at the moment.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#53 Опубликовано: 01.05.2013 13:36:46
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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.



Updated.

Something like this? As for serious use, it's still early.

To use this feature: Properties Source->SourceType = Sheet, Index = n, n - index in limit vector (XLimMin, XLimMax, ...).

[albumimg]93[/albumimg]
LimitsDemo1.sm (6 КиБ) скачан 165 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
#54 Опубликовано: 01.05.2013 15:44:03
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote



Updated.

Something like this? As for serious use, it's still early.

To use this feature: Properties Source->SourceType = Sheet, Index = n, n - index in limit vector (XLimMin, XLimMax, ...).



Yes, this could be great. Good solution how to control multiple plots with different settings. Unfortunately, your example does not work for me. I can see the setting in the properties form. They, however, do not have any effect. Or was that meant just as a feature preview?

Do you plan to have an axis ratio setting or locking option?
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#55 Опубликовано: 01.05.2013 16:48:36
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

XYPlotRegion_20130501r3

You should see a few more options. If they are not there it is strange.

[albumimg]94[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
#56 Опубликовано: 02.05.2013 00:42:21
Basile

Basile

8 сообщений из 172 понравились пользователям.

Группа: User

Hello,

I cannot download the r3.

Basile
#57 Опубликовано: 02.05.2013 03:08:05
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Wrote

Hello,

I cannot download the r3.

Basile


It seems that depends on the uni's ftp server. If the server is down, you can not download the plugin. Just try some later

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#58 Опубликовано: 02.05.2013 18:48:36
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

XYPlotRegion_20130501r3

You should see a few more options. If they are not there it is strange.

[albumimg]94[/albumimg]



I just downloaded and installed r3 again. Still the same: Property source is set to sheet with correct index but changes in the values outside the plot do not have any effect.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#59 Опубликовано: 03.05.2013 08:32:11
kaka

kaka

1 сообщений из 25 понравились пользователям.

Группа: User

It will be great if this can be used for bode plot?
#60 Опубликовано: 03.05.2013 09:38:51
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: Moderator

Wrote

It will be great if this can be used for bode plot?



You can see an aplication of this plugin and Bode plot here

Also you can find another examples to system dynamics here

Regards,

Oscar
1 пользователям понравился этот пост
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений