Check this: http://docs.sympy.org/dev/modules/geometry.html#sympy.geometry.line.LinearEntity.arbitrary_point
I guess that subclassing the class for parametric 2d curves should be sufficient. Then just hardcode the range for 't' (be sure to use a Dummy and not a Symbol for it). Concerning `list(args[0].arbitrary_point())` I do not know why it does not work. Probably something was changed and this code is simply broken now as there are no tests for it. I guess the author meant to write `args[0].arbitrary_point().args` in order to get the parametric expressions. On 24 June 2013 13:19, Amit Saha <amitsaha...@gmail.com> wrote: > On Mon, Jun 24, 2013 at 8:27 PM, Amit Saha <amitsaha...@gmail.com> wrote: >> Hello Stefan, >> >> On Mon, Jun 24, 2013 at 8:21 PM, Stefan Krastanov >> <krastanov.ste...@gmail.com> wrote: >>> It is not supported yet. >>> >>> If you want, you can use the old plotting module (the only difference >>> is the import path). >>> >>> If you are willing, feel free to contribute the needed routines for >>> the new plotting module. You will need to create a new `Series` >>> subclass and mostly copy the code from the old module. We would be >>> happy to help and grateful for the contribution. > > Okay, i am trying to get a very rough idea of how the geometric > objects are being plotted and i come across these lines in > plotting/pygletplot/plot_mode.py: > > if isinstance(args[0], GeometryEntity): > for coords in list(args[0].arbitrary_point()): > functions.append(coords) > intervals.append(PlotInterval.try_parse(args[0].plot_interval())) > > > To experiment, I create a circle: > >>>> c > Circle(Point(0, 0), 2) > > and then: > >>>> list(c.arbitrary_point()) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: 'Point' object is not iterable > > > which is expected. How does the above code work then? Or is args[0] > something other than a single GeometricEntity instance? > > Thanks, > Amit. > > > > > >> >> Thanks, I will try. >> >> Did you mean 'BaseSeries' class btw? >> >> For example, I see: class Line2DBaseSeries(BaseSeries): >> >> >>> >>> On 24 June 2013 12:12, Amit Saha <amitsaha...@gmail.com> wrote: >>>> Hello, >>>> >>>> I saw a few examples of plotting geometric objects using the pyglet >>>> module here [1]. I also learned that this is not going to be developed >>>> actively going ahead. >>>> >>>> Could someone please point to me an example of plotting geometric >>>> objects using the plot() function? (Is it supported yet?) >>>> >>>> >>>> [1] >>>> http://docs.sympy.org/dev/modules/plotting.html#plotting-geometric-entities >>>> >>>> >>>> Thanks, >>>> Amit. >>>> >>>> -- >>>> http://echorand.me >>>> >>>> -- >>>> 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+unsubscr...@googlegroups.com. >>>> To post to this group, send email to sympy@googlegroups.com. >>>> Visit this group at http://groups.google.com/group/sympy. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>> >>> -- >>> 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+unsubscr...@googlegroups.com. >>> To post to this group, send email to sympy@googlegroups.com. >>> Visit this group at http://groups.google.com/group/sympy. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >> >> >> >> -- >> http://echorand.me > > > > -- > http://echorand.me > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.