ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 13 May 2015 09:35:01 -0500Naming of Plot Commands in Sagehttps://ask.sagemath.org/question/26814/naming-of-plot-commands-in-sage/I've started teaching myself sage and I'm a bit confused about the naming of some commands in graphics. The most basic command for graphics is perhaps plot with its variants polar_plot, contour_plot, etc. However, I've also seen some variants of plot that are obtained from plot by adding postfixes to it; for instance, plot_vector_field.
Does anyone know the reason why some graphical commands belong to the first category (prefix_plot) and some to the second (plot_postfix)? I'm asking this because of there is a good reason for this, then it can help me remember the names more easily, and if there is no special reason this might be something to suggest for changes in future releases of sage.
PS I asked this question on [stackoverflow](http://stackoverflow.com/questions/30197714/naming-of-plot-commands-in-sage?noredirect=1#comment48502160_30197714) and got a suggestion for asking it here.
Tue, 12 May 2015 14:28:03 -0500https://ask.sagemath.org/question/26814/naming-of-plot-commands-in-sage/Answer by John Palmieri for <p>I've started teaching myself sage and I'm a bit confused about the naming of some commands in graphics. The most basic command for graphics is perhaps plot with its variants polar_plot, contour_plot, etc. However, I've also seen some variants of plot that are obtained from plot by adding postfixes to it; for instance, plot_vector_field.</p>
<p>Does anyone know the reason why some graphical commands belong to the first category (prefix_plot) and some to the second (plot_postfix)? I'm asking this because of there is a good reason for this, then it can help me remember the names more easily, and if there is no special reason this might be something to suggest for changes in future releases of sage.</p>
<p>PS I asked this question on <a href="http://stackoverflow.com/questions/30197714/naming-of-plot-commands-in-sage?noredirect=1#comment48502160_30197714">stackoverflow</a> and got a suggestion for asking it here.</p>
https://ask.sagemath.org/question/26814/naming-of-plot-commands-in-sage/?answer=26819#post-id-26819Commands like `contour_plot` are supposed to sound natural to (English-speaking) mathematicians, because a contour plot should be a familiar mathematical construction. `plot_vector_field`, on the other hand, is supposed to sound like a command to Sage: "plot this vector field".
You can always find commands that start with "plot" by typing `plot` and then hitting the TAB key. Another useful command is `%psearch`, which lets you search for commands using `*` as a wildcard, so you can do `%psearch *plot` to find commands that *end* in "plot", or do this:
sage: %psearch *plot*
complex_plot
contour_plot
cylindrical_plot3d
density_plot
eulers_method_2x2_plot
gnuplot
gnuplot_console
implicit_plot
implicit_plot3d
list_plot
list_plot3d
list_plot_loglog
list_plot_semilogx
list_plot_semilogy
matrix_plot
parametric_plot
parametric_plot3d
plot
plot3d
plot_loglog
plot_semilogx
plot_semilogy
plot_slope_field
plot_step_function
plot_vector_field
plot_vector_field3d
plotkin_bound_asymp
plotkin_upper_bound
polar_plot
region_plot
revolution_plot3d
scatter_plot
spherical_plot3d
toric_plotter
Wed, 13 May 2015 09:35:01 -0500https://ask.sagemath.org/question/26814/naming-of-plot-commands-in-sage/?answer=26819#post-id-26819