Plot of lists of points

889 views
Skip to first unread message

Florent Gallaire

unread,
Jan 13, 2016, 10:30:30 PM1/13/16
to sy...@googlegroups.com
Hello,

How to plot a list of coordinates of points ?

singlets asks the question here with no anwser:
https://groups.google.com/forum/#!msg/sympy/IwLbqprxuIU/U9neBPaHnCQJ

In the documentation we have:
"lists of coordinates of points" http://docs.sympy.org/dev/modules/plotting.html
and "plot(list_x, list_y)" from
https://github.com/sympy/sympy/wiki/Plotting-capabilities

Is this feature really existing ? And if not, why ?

Cheers,

Florent Gallaire

--
FLOSS Engineer & Lawyer

Aaron Meurer

unread,
Jan 14, 2016, 10:06:33 AM1/14/16
to sy...@googlegroups.com
You can use matplotlib.pyplot.plot directly to plot a list of points.

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAB9F1cfxZz7pySHKywSsQMx8yLrUdohwKCnpNkjxBOuSvx_%3D8g%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Amit Saha

unread,
Jan 14, 2016, 7:26:08 PM1/14/16
to sy...@googlegroups.com
On Fri, Jan 15, 2016 at 2:06 AM, Aaron Meurer <asme...@gmail.com> wrote:
> You can use matplotlib.pyplot.plot directly to plot a list of points.

One think I tried to in the past was to add a matplotlib.pyplot.plot
created plot to a sympy plot so that I could "mark" a single point.
However, I don't think I succeeded.

Has anyone tried this?
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2B0jnLuj6Sk6mn23k-5dpZDAx%2BgYu%3DzqQRJL9_jgneRrQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



--
http://echorand.me

Florent Gallaire

unread,
Jan 15, 2016, 9:00:30 PM1/15/16
to sy...@googlegroups.com
Correct me if I'm wrong, it seems that matplotlib doesn't have
textplot rendering, so there's no solution ?

I don't understand why this limitation: if sympy.plotting.plot can do
a plot with a list of points calculated from an expression given by
the user, why couldn't it do a plot with a list of points given by the
user ?

Cheers,

Florent
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2B0jnLuj6Sk6mn23k-5dpZDAx%2BgYu%3DzqQRJL9_jgneRrQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



Reply all
Reply to author
Forward
0 new messages