Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


3 Pages<123
Options
Go to last post Go to first unread
Offline mkraska  
#41 Posted : 11 May 2020 17:57:28(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
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 (149kb) downloaded 71 time(s).
2020-05-11 16_59_44-SMath Studio - [Scatter plot_Kr.sm].png

Edited by user 11 May 2020 18:00:29(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 17/10/2022(UTC)
Offline Alvaro Gavilán  
#42 Posted : 11 May 2020 18:58:47(UTC)
Alvaro Gavilán


Rank: Advanced Member

Groups: Registered
Joined: 16/04/2020(UTC)
Posts: 65
Man
Paraguay
Location: France

Was thanked: 25 time(s) in 16 post(s)
WOW! Thank you very much mkraska. Amazing.


Annotation 2020-05-11 115457.png
Offline mkraska  
#43 Posted : 11 May 2020 20:45:31(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
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.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Alvaro Gavilán  
#44 Posted : 11 May 2020 22:53:52(UTC)
Alvaro Gavilán


Rank: Advanced Member

Groups: Registered
Joined: 16/04/2020(UTC)
Posts: 65
Man
Paraguay
Location: France

Was thanked: 25 time(s) in 16 post(s)
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 (153kb) downloaded 31 time(s).

Edited by user 11 May 2020 22:59:08(UTC)  | Reason: Not specified

thanks 2 users thanked Alvaro Gavilán for this useful post.
on 12/05/2020(UTC),  on 12/05/2020(UTC)
Offline Jean Giraud  
#45 Posted : 12 May 2020 04:44:23(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Alvaro Gavilá Go to Quoted Post
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
Offline mkraska  
#46 Posted : 12 May 2020 11:07:31(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Originally Posted by: Alvaro Gavilá Go to Quoted Post
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.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 12/05/2020(UTC)
Offline Jean Giraud  
#47 Posted : 12 May 2020 14:45:37(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
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 (46kb) downloaded 26 time(s).

Offline Jean Giraud  
#48 Posted : 12 May 2020 16:06:31(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
On my steam engine: compute/rotate 5k in 19 seconds.

Rotate 3D TREASURY_4 Quaternions MODULO Matrix.sm (51kb) downloaded 39 time(s).

Offline Alvaro Gavilán  
#49 Posted : 12 May 2020 21:55:31(UTC)
Alvaro Gavilán


Rank: Advanced Member

Groups: Registered
Joined: 16/04/2020(UTC)
Posts: 65
Man
Paraguay
Location: France

Was thanked: 25 time(s) in 16 post(s)
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.
Offline Jean Giraud  
#50 Posted : 12 May 2020 22:09:49(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Alvaro Gavilá Go to Quoted Post
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 !!!!!
Offline Ber7  
#51 Posted : 28 November 2020 22:36:28(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Vibrations of a rectangular membrane (animation in3D Plot)


Vibration Restangular3dplot.sm (10kb) downloaded 78 time(s).
thanks 1 user thanked Ber7 for this useful post.
on 28/11/2020(UTC)
Users browsing this topic
Similar Topics
3D Plot Region (Chart3DLib) (Bugs & Problems)
by Dariusz Pogocki 05/10/2020 04:05:04(UTC)
3 Pages<123
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.