how to do semilog or loglog plot of discrete data

how to do semilog or loglog plot of discrete data - Messages

#1 Posted: 10/28/2019 6:06:01 PM
jcuadra

jcuadra

0 likes in 12 posts.

Group: User

Hello all,


I need to do log-log and semilog plots of data in vectors.
I searched around and it seems Maxima would be the most flexible way to do it.

Can someone show me the correct syntax?
(I feel like a dummy ... )

TIA

Capture.PNG
#2 Posted: 10/28/2019 10:04:38 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

We have examples of:
1. log10 decades
2. logpts populate low region.

Utilities logpts Populate Quick.sm (14 KiB) downloaded 65 time(s).
2D Plot Stem log10 DECADES Bode.sm (170 KiB) downloaded 64 time(s).
#3 Posted: 10/29/2019 5:00:03 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Hello all,


I need to do log-log and semilog plots of data in vectors.
I searched around and it seems Maxima would be the most flexible way to do it.

Can someone show me the correct syntax?
(I feel like a dummy ... )

TIA


The command "discrete" isn't a valid draw command. Maxima has two ways of plotting, one using plot2d() and plot3d() and one using draw(). The Draw regions from the Maxima plugin as well as the functions Draw2D() and Draw3D() use the draw package, which is essentially an interface to gnuplot.

There is a lot of examples in the Samples>Maxima topic of the forum

You want to use the command points(matrix), where matrix is a two-column matrix of x and y data.

In my pdf Handbuch you find a lot of example plots. In recent version it seems that the draw regions aren't as robust as the DrawD/3D() commands.
In the attachment you find the smath sheet generating the handbuch plots.

Draw2D3D.sm (481 KiB) downloaded 71 time(s).
Draw2D3D.pdf (3 MiB) downloaded 58 time(s).

points1.png
points1.sm (148 KiB) downloaded 47 time(s).



Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts