This example shows how to use 2d plots in a 3d plot:
http://matplotlib.sourceforge.net/examples/mplot3d/2dcollections3d_demo.html
These examples may also help:
http://matplotlib.sourceforge.net/trunk-docs/examples/mplot3d/contour3d_demo3.html
http://matplotlib.sourceforge.net/trunk-docs/examples/m
I don't see a reason why this can't be implemented. It is probably pretty
simple to change the surface plot code to use a polar grid instead of a
rectangular grid. Of course this won't change the look of the rectangular
axes, but maybe that is not a problem.
I invite you to take a shot at imp
There is an uncommented, and therefore undocumented function:
axes3d.view_init(elev, azim)
that you can use to rotate the axes. If you have not already, I suggest you
use the current SVN version of MPL instead of the 0.99.1 version. Mplot3d has
some more features in the trunk, but it is still
what kind of errors did you get when building on windows? I recently found out
that Visual Studio is required to build MPL on windows. This is because MPL
contains C++ sources. Additionally, you must have the same version of Visual
Studio that was used to build Python. So if you installed py
Here is a partial solution. If you use the SVN code, check out this example:
http://matplotlib.sourceforge.net/trunk-docs/examples/mplot3d/pathpatch3d_demo.html
I haven't ever done it, but I think you can create some kind of image patch.
-Ben
-Original Message-
From: John [H2O] [mail
Interesting, but I think subdividing triangles like this is unnecessary. For
most cases, when one triangle completely covers the other, all that is required
it to Z order the triangles. This is what mplot3d does already. The only case
we have yet to handle is when one triangle "pierces" the o
I also agree with Reinier. I want my 3d plots to look as close as possible to
my 2d plots. Because mplot3d uses so much of the same matplotlib core, this is
trivial. As Friedrich mentioned, the mplot3d code is actually pretty small.
To me, that is a great feature. I found the mplot3d code
I am getting the same error.
Here is my console output:
C:\Projects\matplotlib>python setup.py build
basedirlist is: ['win32_static']
BUILDING MATPLOTLIB
matplotlib: 1.0.svn
python: 2.6.4 (r2
I found an inconsistency with how boxplots are rendered between version 0.99.1
and the svn head. See attached images. I have never seen a boxplot cross back
on itself like this before. Is this the expected behavior?
Thanks,
-Ben
Ben Axelrod
Robotics Engineer
(800) 641-2676 x737
[cid
textpath
tight_bbox
units
widgets
windowing
Thanks,
-Ben
Ben Axelrod
Robotics Engineer
(800) 641-2676 x737
[cid:281553619@22022010-0FB8]
www.coroware.com<http://www.coroware.com/>
www.corobot.net<http://www.co
I am not a MPL developer, but I am using mplot3d quite heavily right now to
support 3D plots for a client of mine. I have found many bugs and lacking
features which I require in the mplot3d library and have modified my local copy
of the code significantly. I am eagerly awaiting Reinier's retur
I think I found a bug in how scatter() handles the alpha transparency of the
plotted points. If the color array passed in is composed of integers, then the
alpha is applied to the points like it should. But if the color array is
floats, then the alpha parameter is ignored. Here is some sample
ot;, name='serif')
ax.set_xlabel("x label", size='large')
ax.set_xlabel("x label", fontsize='large')
ax.set_xlabel("x label", style='italic')
ax.set_xlabel("x label", fontstyle='italic')
ax.set_xlabel("x label&quo
Is anyone planning on attending PyCon in Atlanta next week?
http://us.pycon.org/2010/about/
-Ben
Ben Axelrod
Robotics Engineer
(800) 641-2676 x737
[cid:484541315@12022010-129E]
www.coroware.com<http://www.coroware.com/>
www.corobot.net<http://www.co
Really cool plot.
Speaking of the 1.0 release, is there a target date set? And if there is going
to be another bug-fix release before 1.0, is there a target date for that?
Thanks,
-Ben
-Original Message-
From: John Hunter [mailto:jdh2...@gmail.com]
Sent: Wednesday, February 10, 2010
Maybe instead of plot.show() you should do something like:
plot.draw()
raw_input('Press ENTER to exit')
Personally, I also use IDLE on Windows XP to edit my matplotlib files.
However, I never execute in IDLE. I simply double click the file in windows
explorer.
-Ben
-Original Message
#x27;t use artist.set_figure().
-Ben
-Original Message-
From: Jae-Joon Lee [mailto:lee.j.j...@gmail.com]
Sent: Monday, February 08, 2010 6:36 PM
To: Ben Axelrod
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] Figure.draw_artist() bug with Text
This is not a bug.
The
I am getting a fault when I try to use Figure.draw_artist() with a
matplotlib.text.Text object. Since matplotlib.text.Text inherits from
matplotlib.artist.Artist, which is what draw_artist() takes, this should
probably work.
Tested with latest SVN code on Linux.
Here is the traceback:
Traceb
appropriate for this?
Thanks,
-Ben
-Original Message-
From: Ben Axelrod [mailto:baxel...@coroware.com]
Sent: Saturday, February 06, 2010 5:55 PM
To: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] Axes3D rotation not working when embedded in
backend
I looked into
Message-
From: Ben Axelrod [mailto:baxel...@coroware.com]
Sent: Monday, February 01, 2010 3:56 PM
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] Axes3D rotation not working when embedded in backend
I would like to use Axes3D embedded in Wx. This works, but there is no
.
Thanks,
-Ben
-Original Message-
From: Reinier Heeres [mailto:rein...@heeres.eu]
Sent: Wednesday, February 03, 2010 6:10 PM
To: Ben Axelrod; pierre-yves.debr...@bnpparibas.com; ben.r...@ou.edu
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] re ndering bug in
I think I found a bug with in the Axes3D color support. When there are 3 or 4
points to plot, then the you cannot specify an array of rgba arrays for the
colors of the points.
I tested in matplotlib 0.99.1 and the latest code from SVN. Both exibit the
bug. This simple code demonstrates the
PM
To: Jae-Joon Lee
Cc: Ben Axelrod; matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] Label picker broken?
Importance: Low
On Mon, Feb 1, 2010 at 4:34 PM, John Hunter wrote:
> On Mon, Feb 1, 2010 at 3:47 PM, Jae-Joon Lee wrote:
>
>> I agree.
>> Unfortunately
Sent: Monday, February 01, 2010 3:48 PM
To: Ben Axelrod
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] Label picker broken?
Current "pick" implementation explicitly checks if the event is inside the
axes.
So, you cannot pick artists outside the axes area. This see
I would like to use Axes3D embedded in Wx. This works, but there is no mouse
rotation. Clicking and dragging the mouse on the plot does not rotate the 3D
axes like it does in the "scatter3d_demo.py". I tried: WX, WXAgg, and TkAgg
with similar results. Can this be fixed soon, or can someone p
ke(ydata, ind))
elif isinstance(event.artist, Rectangle):
patch = event.artist
print 'onpick1 patch:', patch.get_path()
elif isinstance(event.artist, Text):
text = event.artist
print 'onpick1 text:', text.get_text()
fig.canvas.mpl_connect('pick_
I want to draw some text and have it clipped by another rectangle I draw. The
text should only display inside the box. I have some sample code that seems
like it should work, but obviously there is something wrong because the text
does not display at all. Any help?
import matplotlib.pyplot a
I am trying to draw some text inside of a rectangle. The text can be longer
than the rectangle, so I would like to wrap the text. I doubt MPL has this
kind of functionality built in, so I am expecting to write it myself.
I think I read somewhere that it is not possible to get the length of tex
I thought of a way to side step the problem. Is it possible to have a Line2D
object that only has a marker on one end?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Axelrod
Sent: Thursday, August 14, 2008 5:54 PM
To: Matplotlib
Subject
When I try using axes.add_artist() to add an Annotation object, it does not
work. Adding a Text object in this manner works fine. Shouldn't Annotation
also work since it inherits from Text? The sample code below demonstrates. I
am using version 0.98.3.
from matplotlib.pyplot import figure,
Bump.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Axelrod
Sent: Thursday, August 14, 2008 5:54 PM
To: Matplotlib
Subject: [Matplotlib-users] Arrow Questions
I am trying to implement a dynamic graph in mpl, where users can drag around
the
I am trying to implement a dynamic graph in mpl, where users can drag around
the nodes, and the edges follow the nodes like rubber bands. I have this
working with regular edges, but I want to give the option of putting arrows on
the edges. I am running into some issues with the Arrow classes.
What is the difference between setting clip_on and clip_box? For an
annotation, there does not appear to be any difference. But if I give the
annotation a bbox, then only clip_box works to clip the box at the axes
boundary. The example below demonstrates:
from matplotlib.pyplot import figure,
Try this:
self.axes.set_yticks([])
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of "Jonathan
Hayward, http://JonathansCorner.com";
Sent: Wednesday, August 06, 2008 4:38 PM
To: Matplotlib
Subject: [Matplotlib-users] Yticks off?
I am making a b
constrained to using the official releases and not the svn code).
Thanks,
-Ben
-Original Message-
From: Michael Droettboom [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2008 10:17 AM
To: Ben Axelrod
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] 0.98.3 scatter plot
I get an error when I use the scatter plot and set the 'c' value to a list of
3-tuples. The error goes away if I use 4-tuples instead. Are colors with only
3 values not supported anymore?
...
File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 4807, in scatter
colors = mcolor
I am using the wxAgg backend with the NavigationToolbar2WxAgg toolbar. I would
like to hook up a keyboard shortcut that will call the 'home' button on the
toolbar. The only way I know to do this is the call the wx event with the ID
of the home button. The problem is that this ID is not a memb
Yes. I did this by deriving my toolbar class from the default
NavigationToolbar2WxAgg. Then deleting the buttons I did not want. I had to
delete by position, because I did not know their IDs. (Does anyone know how to
get the IDs of these standard buttons?) Sample code below:
class VMToolba
Thanks for the bug fix. Do you think this fix will make it into the 0.98.3
release?
-Original Message-
From: John Hunter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2008 1:49 PM
To: Ben Axelrod
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] bar plot
I get an exception when I set up a bar chart with a picker that has a bar with
0 height, and I click on the chart.
Code to generate exception:
from matplotlib.pyplot import figure, show
import numpy as np
def onpick1(event):
print 'foo'
fig = figure()
ax = fig.add_subplot(111)
xdata = [1,
Text picking does not seem to work for me anymore since I upgraded from 0.91.4
to 0.98.1.
These lines should set up the picker. They come straight from
"pick_event_demo.py"
ax1.set_title('click on points, rectangles or text', picker=True)
ax1.set_ylabel('ylabel', picker=True, bbox=dict
I am having problems plotting anything using version 0.98.1 on Linux Debian 4.
But 0.91.4 works fine.
When I try to plot something I get this error on the console:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
line 331, in expo
I have noticed 2 bugs having to do with NaN handling in the scatter() function.
And one other bug that seems to be in numpy.
1. The min and max for the axes are not computed properly when there are NaNs
in the data. Example:
import pylab as pl
import numpy as np
x = np.asarray([0, 1, 2, 3, N
I am trying to plot some 2D scatter plot data where:
* the points have a colormap
* some points have larger, colored circles on them
* some points have a dark ring around them
I have managed to get this functionality to work by using both the scatter()
and plot() commands. My problem is that
It seems that axes.plot() handles 'None' values in the input arrays gracefully
by just not plotting that point. But axes.scatter() bugs out. Can this be
fixed?
Thanks,
-Ben
-
This SF.Net email is sponsored by the Moblin You
It seems like this should be possible:
ax.scatter(x, y, c=None)
but axes chokes on the c=None parameter.
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based application
The RectangleSelector has parameters for the min span in the x and y directions
of the rectangle. The units of these are the axes units. It would be nice if
there was an additional similar min size requirement, but in units of pixels.
This way it would be independent of the axes scale.
Thank
I get errors when I add:
deb http://anakonda.altervista.org/debian packages/
deb-src http://anakonda.altervista.org/debian sources/
to my /etc/apt/sources.list. Is this still the preferred method for installing
on Debian?
Thanks,
-Ben
-
I am new to MatPlotLib and I saw in the archives that 3d plotting is no longer
supported in version 0.98. This seems like a major feature drop to me.
I would really like to use this feature. Does anyone know what must be done to
get this working again?
Thanks,
-Ben
---
49 matches
Mail list logo