On Mon, Jul 16, 2012 at 12:56 AM, Bharath M R <[email protected]> wrote:
> Hi,
>   During a discussion on IRC, both Aaron and I thought that we should split
> the plot heuristic into separate functions and do away with the plot
> heuristic.
> The functions will be
> plot - plots only 2d plots.

Would it make more sense to call this plot_2d()?

> plot_3d - plots 3d plots.
> plot_implicit - plots regions and implicit plots.
>
> Advantages:
> - The docstrings will be cleaner.
> - Adding new plot types will be easier. The heuristic will become more and
> more
> complicated when we have to add other types of plots.
>
> Disadvantages.
> - pollutes the namespace.

To make things clearer, I easily envision us creating a bunch of
plotting functions.  Just look at systems like Maple or Sage that have
a good plotting system.  They have a ton of specialized plotting
functions, which make it easier to plot various kinds of expressions
or concepts.  Of course, we may consider that most of these are not
important enough to import by default.

I also thought of another disadvantage.  If we want to plot non-Expr
objects, it's not clear what function to use any more.  For example,
suppose we wanted to add a way to plot the objects in the geometry
module.  If I want to plot Circle, should I use plot_implicit? or
plot_2d?  Maybe create a geometry_plot() function.  Or should we just
require it to be Circle.plot?  With the plot() heuristic, at least
plot(Circle) could work.  This is perhaps just a special case of the
above point.

Note that I don't really think that this outweighs the benefits of
deleting plot(), but it's worth thinking about.

Aaron Meurer

>
> What would be better?
>
> Thanks,
> Bharath M R.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/Zolkn_LUSDMJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to