3D Plot Region

3D Plot Region - CreateMesh() and 3D Plot - Poruke

#41 Objavljeno: 11. 5. 2020. 11:57:28
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Scatter plots can be made using the Maxima plugin. I didn't respond initially, because the interface has never been tested with 1M points. Yet the backend gnuplot should be able to do that. I just don't know whether there are some limitations in the conversion functions.

The example uses a Maxima Draw3D plot region. You can interactively rotate and resize the plot with the mouse.

Scatter plot_Kr.sm (148,84 KiB) preuzeto 2043 put(ova).
2020-05-11 16_59_44-SMath Studio - [Scatter plot_Kr.sm].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
sergio 17. 10. 2022. 16:28:00
#42 Objavljeno: 11. 5. 2020. 12:58:47
Alvaro Gavilán-Rojas

Alvaro Gavilán-Rojas

26 svidjanja u 68 postova.

Grupa: User

WOW! Thank you very much mkraska. Amazing.


Annotation 2020-05-11 115457.png
#43 Objavljeno: 11. 5. 2020. 14:45:31
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

You are welcome.
If the plot is sufficiently stable, you can remove the restart command.
You also can remove the first occurances of points_joined and points(). I just used them to demonstrate a selection of options.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#44 Objavljeno: 11. 5. 2020. 16:53:52
Alvaro Gavilán-Rojas

Alvaro Gavilán-Rojas

26 svidjanja u 68 postova.

Grupa: User

I think that a limit for stability is 40k points. Very difficult to rotate the graphic, but..it is a limit. A normal behavior I will consider until 5k points (to plot in ~5 s and easily rotate).

Again, thank you, because this will help me achieve my program (interaction volume for concrete design). And rarely I will need more than 5k points (I think 1M points was clearly an unthought exaggeration).

Here, the images:

SMath (40k points):

Scatter plot - SMath (40k points).png


Mathcad(40k points): (plotting limit of Mathcad)

Scatter plot - Mathcad (40k points).png

File:

Scatter plot_Kr-1.sm (152,43 KiB) preuzeto 1910 put(ova).
2 korisnika je svidelo ovu objavu
Martin Kraska 12. 5. 2020. 04:38:00, frapuano 12. 5. 2020. 07:14:00
#45 Objavljeno: 11. 5. 2020. 22:44:23
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Very difficult to rotate the graphic


No problem to rotate the graphic ... didn't try 5 k.
All native random in CAS are "uniform"
unless specified [Weibull, Normal, Logistic].
We have those in Smath as utilities.
All modules NUMERIC.
Cheers ... Jean

runif.PNG
#46 Objavljeno: 12. 5. 2020. 05:07:31
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Wrote

I think that a limit for stability is 40k points. Very difficult to rotate the graphic, but..it is a limit. A normal behavior I will consider until 5k points (to plot in ~5 s and easily rotate).

Again, thank you, because this will help me achieve my program (interaction volume for concrete design). And rarely I will need more than 5k points (I think 1M points was clearly an unthought exaggeration).



Thank you for sharing test results.

There is another option for Maxima based plots in SMath.
You can use the same list of commands as argument list to the function Draw3D(). You can directly put this command into the placeholder of an Image region. This region displays images given by file name. And not really just by chance, the Draw3D() command returns the file name of the generated image. The drawback is that the image is just be scaled upon resizing the region and can't be rotated interactively.

This is sometimes more stable than using the interactive regions.

For further polishing the plot you can basically rely on the official maxima documentation of the draw package. However, not all options are supported by SMath. The german handbook (section 8.1) gives a good overview of what can be done with Maxima and SMath.

Note that pointsize (and possibly other options) don't account for high DPI settings. 0.01 is rarely visible on 4K.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
frapuano 12. 5. 2020. 07:15:00
#47 Objavljeno: 12. 5. 2020. 08:45:37
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

No problem to rotate the 5k graphic


24 Quaternions possible rotations ...
export the preferred angular system.
Would nice to add the cube outline.
Martin: what can you do with that in native SS 6179 ?
Cheers ... Jean.

Rotate 3D TREASURY_4 Quaternions MODULO Matrix.sm (45,96 KiB) preuzeto 1891 put(ova).

#48 Objavljeno: 12. 5. 2020. 10:06:31
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

On my steam engine: compute/rotate 5k in 19 seconds.

Rotate 3D TREASURY_4 Quaternions MODULO Matrix.sm (50,68 KiB) preuzeto 1936 put(ova).

#49 Objavljeno: 12. 5. 2020. 15:55:31
Alvaro Gavilán-Rojas

Alvaro Gavilán-Rojas

26 svidjanja u 68 postova.

Grupa: User

Thank you mkraska for the information. I am already learning and having fun with german from your excellent handbook and surely will do my effort to optimize my plot in Maxima.
And Jean thank you for your codes, even if I don't understand that field of quaternions, that seems complex and I realize there are important features like the non-linear solver.
#50 Objavljeno: 12. 5. 2020. 16:09:49
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

I don't understand that field of quaternions


Quaternions rotation is even more important than Euler.
The other one is the 4 parameters rotation.
As given, each Modulo give 24 rotations each.
Add other combinations from alpha/beta !!!!!
#51 Objavljeno: 28. 11. 2020. 16:36:28
Fridel Selitsky

Fridel Selitsky

520 svidjanja u 451 postova.

Grupa: User

Vibrations of a rectangular membrane (animation in3D Plot)


Vibration Restangular3dplot.sm (9,82 KiB) preuzeto 1968 put(ova).
1 korisnika je svidelo ovu objavu
Andrey Ivashov 28. 11. 2020. 16:39:00
#52 Objavljeno: 19. 8. 2025. 22:32:01
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility History page Changes AI Assistant

Plugin updated. [BETA]

It's very difficult to improve this plugin. Basically, I started developing it from scratch.

Changes:

- expression parsing has been improved;
- CreateMesh() function has been improved;
- automatic scaling function has been added;
- surface drawing algorithm has been improved;
- added many bugs.

plot3d-examples-draft.sm (11,38 KiB) preuzeto 1441 put(ova).

image.png
Izmenjeno 19. 8. 2025. 23:04:36
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
Rafael H Padilla Velázquez 20. 8. 2025. 00:59:41
#53 Objavljeno: 20. 8. 2025. 08:37:50
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility History page Changes AI Assistant

Plugin updated. [BETA]

Changes:

- improved mouse control;
- temporarily disabled autoscaling;
- added anti-aliasing when drawing.

image.png
Izmenjeno 20. 8. 2025. 08:39:22
Russia ☭ forever, Viacheslav N. Mezentsev
5 korisnika je svidelo ovu objavu
Andrey Ivashov 20. 8. 2025. 20:44:36, Davide Carpi 20. 8. 2025. 21:02:17, sergio 27. 8. 2025. 13:31:19, Rafael H Padilla Velázquez 20. 8. 2025. 19:08:03, Alvaro 20. 8. 2025. 18:06:26
  • Novi postovi
  • Nema novih postova