Oh, I forgot to mention that I got the following warnings:

In [6]: p = Plot(Heaviside(x)*(1 - x)*sin(y), (x, -1, 1), (y, -pi, pi))

In [7]: p.show()
/sw/lib/python2.7/site-packages/matplotlib/axes.py:4368: UserWarning:
No labeled objects found. Use label='...' kwarg on individual plots.
  warnings.warn("No labeled objects found. "

In [8]: p = Plot(Heaviside(x)*(1 - x)*sin(y), (x, -1, 1), (y, -pi, pi), '3d')

In [9]: p.show()
/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/plotting/newplot.py:901:
UserWarning: xscale is not supported in 3D matplotlib backend.
  warnings.warn('xscale is not supported in 3D matplotlib backend.')
/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/plotting/newplot.py:879:
UserWarning: axis_center is not supported in 3D matplotlib backend.
  warnings.warn('axis_center is not supported in 3D matplotlib backend.')
/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/plotting/newplot.py:895:
UserWarning: xscale is not supported in 3D matplotlib backend.
  warnings.warn('xscale is not supported in 3D matplotlib backend.')

Aaron Meurer

On Fri, Nov 11, 2011 at 1:39 PM, Aaron Meurer <asmeu...@gmail.com> wrote:
> Hi.
>
> This looks great.  For others, to run the examples, download the
> examples script and put in the sympy directory.  Then, checkout
> Krastanov's branch (from the pull request). Then, run IPython, and
> type %run examples.py.  And then type p0.show(), p1.show(), etc. (up
> to p4).
>
> And if you just want to test the plotting of your own functions in
> isympy, you have to run "from sympy.plotting.newplot import *", or
> else it will use the old plotting.  The syntax is
>
> In [8]: p = Plot(Heaviside(x)*(1 - x)*sin(y), (x, -1, 1), (y, -pi, pi), '3d')
>
> In [9]: p.show()
>
> (if you don't add '3d' in this case, it will default to a contour
> plot, which btw is maybe not the best default)
>
> Aaron Meurer
>
> On Fri, Nov 11, 2011 at 7:46 AM, krastanov.ste...@gmail.com
> <krastanov.ste...@gmail.com> wrote:
>> The proposal that I made in https://github.com/sympy/sympy/pull/673 may or
>> may not became part of sympy but I like it and it's already quite useful for
>> me.
>>
>> Here are some examples. I would like to know what do you think. The 3d stuff
>> runs only on the latest version of matplotlib _after_ fixing a bug
>> (mentioned in the commit history, but those will be squashed soon).
>
> I didn't have any problems with it, though you do seem to have found a
> bug in matplotlib.  I would submit a pull request to them fixing it.
>
> Aaron Meurer
>
>>
>> The script to produce them is also attached (as the api is probably more
>> important than the visuals (the _series[index] stuff is just a workaround
>> until getters are written)).
>>
>> Regards
>> Stefan
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sympy" group.
>> To post to this group, send email to sympy@googlegroups.com.
>> To unsubscribe from this group, send email to
>> sympy+unsubscr...@googlegroups.com.
>> 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 sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to