On Mon, Jun 24, 2013 at 8:27 PM, Amit Saha <[email protected]> wrote:
> Hello Stefan,
>
> On Mon, Jun 24, 2013 at 8:21 PM, Stefan Krastanov
> <[email protected]> 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 <[email protected]> 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 [email protected].
>>> To post to this group, send email to [email protected].
>>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to