Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 2356 by [email protected]: Plot should plot polygons
http://code.google.com/p/sympy/issues/detail?id=2356
All geometry objects but Polygon are plotted.
Here is a way to plot a polygon with a Curve containing a Piecewise
function:
# plot polygon and piecewise together
t = Symbol('t')
axes_options = 'visible=true; colored=true; label_ticks=true;
label_axes=true; overlay=true; stride=1.0'
p = Plot(width=600, height=500, ortho=False, invert_mouse_zoom=False,
axes=axes_options, antialiasing=True)
g=Polygon((0,0),(1,0),(1,1),(2,3))
for s in g.sides:
p.append(*(s, [0], [1]))
p.append(*(Curve((t, Piecewise((2*t, t<.5), (1,True))), (t, 0,1)), [0],
[1]))
p.show()
The first plot that pops up is the instantiation; the second one is the
plot with the data.
I'm leaving this as an issue and a hint about the direction to go. I don't
have time to pursue how to implement this now.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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-issues?hl=en.