X-Y Plot Region

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

#661 Objavljeno: 4. 8. 2025. 11:19:22
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

The topic of scaling is quite difficult to implement and more details are needed to repeat.

In addition, I found that the document contains a ppi value in the header and it changes depending on the resolution at which the document was saved. Perhaps this also affects the display of the document.
Russia ☭ forever, Viacheslav N. Mezentsev
2 korisnika je svidelo ovu objavu
ioan92 5. 8. 2025. 14:37:12, Martin Kraska 4. 8. 2025. 21:03:10
#662 Objavljeno: 4. 8. 2025. 21:12:39
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

There are two more ppi problems in my setup with changing display devices:
- PNGs produced by by the Snapshot region are of different size depending on where they are created. At least their size in a book processed with pdflatex is different. I have to find out whether this is actually caused by different number of pixels or by some metadata in the PNG file (which I am not aware of so far)
- Screenshots created interactively using Greenshot have correct size if pasted back to SMath in one setup and appear enlarged in the other.

Edit:

It seems that the problems are related to having set a scale factor of 150% if using the internal monitor because of it's limited size (14") . The screenshot pasting and the snapshot region problems are solved, they now behave with the internal monitor the same way as using the external one.

The X-Y plot region, however, now is back to the original problem of much to small axis and tick labels. If I want the axis label to be of the same size as in a text region I have to set the font size to something between 13 (a little smaller) and 14 (a little larger).
BTW, now my dpi setting in the file and in the system information changed from 144 to 96.
Izmenjeno 4. 8. 2025. 21:49:03
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#663 Objavljeno: 5. 8. 2025. 01:24:30
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility History page Changes

Plugin updated. [BETA]

Changes:

- implementation of a fully functional Animation;
- export to animated GIF;
- user interface improvements and localization;
- deep refactoring and code quality improvement;
Russia ☭ forever, Viacheslav N. Mezentsev
2 korisnika je svidelo ovu objavu
sergio 5. 8. 2025. 11:25:46, Alvaro 5. 8. 2025. 07:13:11
#664 Objavljeno: 5. 8. 2025. 07:14:55
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Wrote

... - implementation of a fully functional Animation;
- export to animated GIF; ...



It works fine.

pQuiverAnim.gif

pQuiverAnim.sm (58,9 KiB) preuzeto 1421 put(ova).

Best regards.
Alvaro.
5 korisnika je svidelo ovu objavu
francesco rapuano 5. 8. 2025. 14:50:30, Вячеслав Мезенцев 5. 8. 2025. 07:22:17, sergio 5. 8. 2025. 11:25:44, NDTM Amarasekera 5. 8. 2025. 16:59:45, Davide Carpi 5. 8. 2025. 17:10:45
#665 Objavljeno: 5. 8. 2025. 12:29:06
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Coming soon...

image.png

beating_heart.gif
Russia ☭ forever, Viacheslav N. Mezentsev
5 korisnika je svidelo ovu objavu
Rafael H Padilla Velázquez 5. 8. 2025. 14:54:49, sergio 5. 8. 2025. 13:56:02, Alvaro 5. 8. 2025. 16:39:06, Davide Carpi 5. 8. 2025. 17:10:46, ioan92 5. 8. 2025. 14:39:44
#666 Objavljeno: 5. 8. 2025. 20:51:20
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

And various other things...

Now the new and old functionality of the plugin is being processed by a neural network. The code has become too complex for one person to maintain. Now I only give instructions and am a tester.
I try to check what the AI has written there, it does it in many ways better than me, but it often makes mistakes due to insufficiently clearly stated tasks.

image.png
Izmenjeno 5. 8. 2025. 21:05:26
Russia ☭ forever, Viacheslav N. Mezentsev
2 korisnika je svidelo ovu objavu
francesco rapuano 6. 8. 2025. 11:02:34, Alvaro 6. 8. 2025. 01:52:06
#667 Objavljeno: 6. 8. 2025. 01:56:29
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

image.png

VanDerPol.gif

Starting at (-2,2)

VanDerPol2.gif

Van der Pol oscillator.sm (60,01 KiB) preuzeto 1448 put(ova).

with an improved quiver version.

Best regards.
Alvaro.
Izmenjeno 6. 8. 2025. 06:17:18
#668 Objavljeno: 6. 8. 2025. 20:52:51
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility History page Changes AI Assistant

Plugin updated. [BETA]

Changes:

- the animation control menu has been completely redesigned into a single, comprehensive "Animation" dropdown for a cleaner and more intuitive user experience;
- implemented a dynamic Play/Pause button that intelligently changes its text and function based on the current animation state;
- added Spacebar as a hotkey to toggle Play/Pause functionality, providing a standard and convenient control method;
- menu items for playback control (Stop, Next/Previous Frame, Export) are now dynamically enabled/disabled based on whether animation frames have been generated, preventing user confusion;
- improved animation state management: the "Stop" command now resets the animation to the first frame and pauses it without deleting the generated frames, allowing for immediate playback or frame-by-frame review. A full ResetAnimation is now triggered by deselecting the animation variable;
- implemented multiple ways to cancel an animation ("Cancel", unchecking and Animate.Variable:="");
- exporting a frame as an image (png,bmp,jpg,jpeg) is also supported, you need to specify the frame number at the end of the file name after the extension ("#n"). I haven't tested it myself yet;
- KeepAspectRatio property added.

The Gif encoder is a very basic implementation. Don't expect good quality until I find an accessible source.

My thanks to the developers of Gemini: xyplot-animate-heartbeat.sm (8,75 KiB) preuzeto 1581 put(ova).

xyplot-aminate-circle.sm (10,6 KiB) preuzeto 1487 put(ova).
xyplot-properties-vec2vec.sm (11,02 KiB) preuzeto 1412 put(ova).
Izmenjeno 7. 8. 2025. 00:33:58
Russia ☭ forever, Viacheslav N. Mezentsev
5 korisnika je svidelo ovu objavu
Rafael H Padilla Velázquez 7. 8. 2025. 16:13:33, Martin Kraska 9. 8. 2025. 17:38:22, Alvaro 7. 8. 2025. 17:31:51, Davide Carpi 7. 8. 2025. 09:25:41, Oscar Campo 13. 8. 2025. 11:28:21
#669 Objavljeno: 7. 8. 2025. 09:29:59
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Wrote

The Gif encoder is a very basic implementation. Don't expect good quality until I find an accessible source.



ScreenToGif utility has multiple good encoding algorithms, and is public. You can check if there is something useful here.
Izmenjeno 7. 8. 2025. 09:31:46
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 korisnika je svidelo ovu objavu
Martin Kraska 9. 8. 2025. 17:38:14
#670 Objavljeno: 10. 8. 2025. 14:39:56
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Animations: Changes in the frame rate are ignored until the next stop/start

The last Update of the plugin changed the behaviour of curve filling.

What I have now is

image.png

before the fill was under the curve. In the new version this is only possible if the curve does not exceed the upperl limit of the y axis

image.png

Actually I just want to fill a range between two x values.

I'd recommend to add an attribute to fill, i.e. the index of another trace to fill the area between the current and the referenced trace. Index 0 would mean the x axis y=0.
4-1.sm (36,4 KiB) preuzeto 1390 put(ova).
Izmenjeno 10. 8. 2025. 14:41:30
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2 korisnika je svidelo ovu objavu
Alvaro 10. 8. 2025. 18:37:54, Вячеслав Мезенцев 10. 8. 2025. 16:57:50
#671 Objavljeno: 17. 8. 2025. 21:44:34
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Feature proposal: Indicate the fill style in the legend. It may be a matter of taste but I think that in the example below the Maxima version of the legend is easier to comprehend.

In general, the X-Y Plot is getting better at an amazing pace. There is not much need to use Maxima 2D graphics any more, except for logarithmic axes and prettyprinted labels for a_b and a^b

image.png
image.png
QM-Linie_RK.sm (411,86 KiB) preuzeto 1475 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
3 korisnika je svidelo ovu objavu
sergio 18. 8. 2025. 13:53:31, francesco rapuano 18. 8. 2025. 14:28:43, ioan92 18. 8. 2025. 07:43:36
#672 Objavljeno: 18. 8. 2025. 14:00:43
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility History page Changes AI Assistant

Plugin updated. [BETA]

Changes:

- added multiple fill modes controlled by FillStyle.Mode;
- animation frame rate now updates instantly when changed from the context menu;
- refactored drawing logic;
- the appearance of the curve in the legend has been changed.

Modes ToNextTrace and ToTrace not implemented. Auto - the default mode for normal filling of implicit curves.

image.png
Izmenjeno 18. 8. 2025. 14:19:45
Russia ☭ forever, Viacheslav N. Mezentsev
6 korisnika je svidelo ovu objavu
Davide Carpi 18. 8. 2025. 18:10:31, Rafael H Padilla Velázquez 18. 8. 2025. 16:45:38, sergio 18. 8. 2025. 17:48:18, NDTM Amarasekera 19. 8. 2025. 01:33:19, ioan92 19. 8. 2025. 09:36:50, Martin Kraska 20. 8. 2025. 10:03:30
#673 Objavljeno: 20. 8. 2025. 07:13:03
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility History page Changes AI Assistant

Plugin updated.

Changes:

- fixed the problem of font scaling;
- fixed minor bugs in filling.
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
Martin Kraska 20. 8. 2025. 10:03:25
#674 Objavljeno: 20. 8. 2025. 10:17:24
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Uni, thanks for the recent fixes/implementations. Now I have to fix the manual font size adjustments No complaint, that should be easy with just some commands copied to the top of each worksheet.

I observe that one can remove the format commands once they were applied. They don't just override the dialog settings as long as they exist but rather change them permanently. Is this by design? Anyways, I am fine with how it is.

I observe a problem. If I try to copy the trace properties in the dialog window (top level entry for a single trace) the I get an error (recoverable soft crash):

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei XYPlotPlugin.SeriesEditor.(Object , EventArgs )
bei System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
bei System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
bei System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
bei System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
bei System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
bei System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ToolStrip.WndProc(Message& m)
bei System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#675 Objavljeno: 20. 8. 2025. 11:24:17
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility History page Changes AI Assistant

Citat

I observe a problem. If I try to copy the trace properties in the dialog window (top level entry for a single trace) the I get an error (recoverable soft crash)


Plugin updated. Try it now.

Changes:

- the "format" dialog window (Traces Editor) has been reworked.

Citat

I observe that one can remove the format commands once they were applied. They don't just override the dialog settings as long as they exist but rather change them permanently. Is this by design? Anyways, I am fine with how it is.


Yes, this is the only way to manage properties accurately so far. Unfortunately, when adding a component, its name is not automatically changed, as one might expect. This happens because at the time of its creation there is no access to the sheet and it is impossible to find out the list of already created components located on it.
This leads to the problem that all components that have the same name will be available for changing properties.

In addition, due to the peculiarities of the computing process and storage of variables, the application of properties may not occur as it is recorded on the sheet. This is due to the fact that a variable in the list during the calculation of the document occupies a specific place in the internal storage. If we replace the value of this variable, its position will not change. The order corresponds to the order of their creation. This can lead to unobvious effects when setting properties if they are applied more than once in one document.

In general, using this method of settings is not quite typical. We lack an architect to design user interaction. I only suggest what can be practically implemented and is not too complicated, and is also extensible.
Izmenjeno 20. 8. 2025. 11:34:28
Russia ☭ forever, Viacheslav N. Mezentsev
#676 Objavljeno: 20. 8. 2025. 11:48:42
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Is this normal?

2025-08-20_14-47_1.png
#677 Objavljeno: 20. 8. 2025. 12:21:08
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Linux? Yes, there are problems with the distance, I'll take a look.

Снимок экрана от 2025-08-20 17-14-03.png

Снимок экрана от 2025-08-20 17-16-24.png
Russia ☭ forever, Viacheslav N. Mezentsev
#678 Objavljeno: 20. 8. 2025. 15:41:26
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility History page Changes AI Assistant

Plugin updated.

Changes:

- Completely refactored the drawing logic for X, Y, and Y2 axes;
- Implemented intelligent clipping and clamping for axis labels;
- The logic for drawing text labels (LabelSeries) has been improved;
- Text labels now automatically adjust their position based on the size of the associated series symbol;
- The rendering logic now correctly handles different scenarios: drawing only a symbol, only text, or a symbol with an adjacent text label;
- The activation areas for per-axis zooming (hovering over an axis and using the mouse wheel) are now calculated dynamically.
Russia ☭ forever, Viacheslav N. Mezentsev
6 korisnika je svidelo ovu objavu
Davide Carpi 20. 8. 2025. 21:02:49, Alvaro 21. 8. 2025. 01:46:51, francesco rapuano 21. 8. 2025. 12:46:00, Rafael H Padilla Velázquez 20. 8. 2025. 19:08:34, Andrey Ivashov 20. 8. 2025. 20:45:49, sergio 20. 8. 2025. 17:10:56
#679 Objavljeno: 24. 8. 2025. 19:34:53
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Where has the Axis marker (huge +) in the Add element menu gone? I used it a lot and it would be nice to have it on the top of the element tree, because it is not a straightforward guess as to what category it might belong. Also, new users might not even know that this option exists.

Yet, the most natural way perhaps would be an option in the Format dialog. Along with an option linear/logarithmic
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#680 Objavljeno: 24. 8. 2025. 19:42:32
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

This menu item was reworked by AI and I didn't track it and it disappeared, I looked for it myself and didn't find it. You can suggest your ideas for quick insertion besides this, I will add.
As for logarithms and other things, I talked to the AI, he was all for it, but the project would have to be shaken up again, I'll look later.
Russia ☭ forever, Viacheslav N. Mezentsev
  • Novi postovi
  • Nema novih postova