Poll on loglog and semilog plots

27 views
Skip to first unread message

kcrisman

unread,
May 26, 2012, 1:04:36 AM5/26/12
to sage-devel
Thanks to ppurka, we are finally very close to having easily usable
log-scale plots. We would like to take two votes (if anyone cares) on
commands for log plots and semilog plots. See http://trac.sagemath.org/sage_trac/ticket/4529
for background and examples.

Where it happens (vote for one):
[ ] Only in special commands like loglog_plot and the like, and not in
usual commands like plot_*. That is, one could not take a plot and
then later decide whether or not to show it with a different scale.
On the plus side, it would be obvious that one couldn't add two plots
with different scales.
[ ] In all (or most) plot commands, but then have the plot scale in
different axes be handled by keywords/parameters called "scale" and
"base" for plot_* but handled in the .show() and .save() methods
[ ] Some combination of the above (probably having a few commands like
loglog_plot and semilog_plot and loglog_list_plot which automatically
would put in the correct show parameters).

What actual function names to have (vote for as many as you like):
[ ] loglog_plot
[ ] semilog_plot(logaxis='x/y')
[ ] semilogx_plot/semilogy_plot
[ ] loglog_list_plot
[ ] semilog_list_plot(logaxis='x/y')
[ ] semilogx_list_plot/semilogy_list_plot

john_perry_usm

unread,
May 26, 2012, 1:44:17 AM5/26/12
to sage-devel
Why not have it as an option to the show() command? Seems to me a plot
should just be a plot, and display options should be handled by the
function that does the actual displaying.

Of course, I have no idea how the backend works, and (worse) didn't
bother to read the comments, just a bit of the ticket description. So
if this is a Very Stupid Question, feel free to castigate me for
it. :-)

john perry

P Purkayastha

unread,
May 26, 2012, 1:48:16 AM5/26/12
to sage-...@googlegroups.com
It is also available as an option to the show() command. The other functions are just convenience functions that people who have used other software might come to expect.

Jeroen Demeyer

unread,
May 26, 2012, 1:55:23 AM5/26/12
to sage-...@googlegroups.com
On 2012-05-25 22:04, kcrisman wrote:
> What actual function names to have (vote for as many as you like):
> [ ] loglog_plot
> [ ] semilog_plot(logaxis='x/y')
> [ ] semilogx_plot/semilogy_plot
> [ ] loglog_list_plot
> [ ] semilog_list_plot(logaxis='x/y')
> [ ] semilogx_list_plot/semilogy_list_plot
[X] None of the above

[X] plot_loglog
[X] plot_semilog_x
[X] plot_semilog_y
[X] list_plot_loglog
[X] list_plot_semilog_x
[X] list_plot_semilog_y

Dima Pasechnik

unread,
May 26, 2012, 5:53:21 AM5/26/12
to sage-...@googlegroups.com
yeah, I also like the latter better.
Dima

P Purkayastha

unread,
May 27, 2012, 3:03:56 AM5/27/12
to sage-...@googlegroups.com
I am ok with either of the following:
[x] loglog_plot 
[x] semilogx_plot/semilogy_plot 
[x] loglog_list_plot 
[x] semilogx_list_plot/semilogy_list_plot

or

(Note there is no _x or _y)

[X] plot_loglog 
[X] plot_semilogx 
[X] plot_semilogy 
[X] list_plot_loglog 
[X] list_plot_semilogx
[X] list_plot_semilogy

kcrisman

unread,
May 27, 2012, 3:24:35 AM5/27/12
to sage-devel

> (Note there is no _x or _y)
>
> [X] plot_loglog
> [X] plot_semilogx
> [X] plot_semilogy
> [X] list_plot_loglog
> [X] list_plot_semilogx
> [X] list_plot_semilogy

I feel like tab-completion for this is a slight argument in favor of
these.
Reply all
Reply to author
Forward
0 new messages