[Matplotlib-users] 3D histogram with time on one axis

2014-09-18 Thread Florin Andrei
I've started with a data file consisting of one number per line, wide distribution of values. I've created a histogram out of it, showing the frequency of occurrence of values in about 200 bins. Even managed to do a log xscale. # import matplotlib.pyplot as plt impor

Re: [Matplotlib-users] 3D surface plot with box frame

2014-06-29 Thread Sturla Molden
"Dawes, Andrew M." wrote: > Any suggestions/hacks are welcome! Mayavi (a VTK-based plotting tool) is much better for 3D plots: http://docs.enthought.com/mayavi/mayavi/auto/examples.html http://docs.enthought.com/mayavi/mayavi/mlab.html Sturla

Re: [Matplotlib-users] 3D surface plot with box frame

2014-06-27 Thread Dawes, Andrew M.
Thanks Ben for the tip on edgecolor. I’ve got what I wanted now and since it took some digging and tinkering I figured I’d write it up and share the solution with anyone who may want it: https://dawes.wordpress.com/2014/06/27/publication-ready-3d-figures-from-matplotlib/ and full test-case scri

Re: [Matplotlib-users] 3D surface plot with box frame

2014-06-26 Thread Benjamin Root
If you supply the code you did to get where you got, I have a rough idea how to get what you need. Essentially, you need to set the edgecolor of the panes, I think. I have to dig a bit in the code to see how to do that, though. Cheers! Ben Root On Thu, Jun 26, 2014 at 7:42 PM, Dawes, Andrew M.

[Matplotlib-users] 3D surface plot with box frame

2014-06-26 Thread Dawes, Andrew M.
I’m trying to plot a 3d surface with a box frame around both sides (see example in the following link) comparable example: http://cloud.originlab.com/www/products/images2/3DGraph_ColorSurface.png I made the axis panes white and disabled the grid which gets me 80% of the way. I don’t see anythin

Re: [Matplotlib-users] 3D-projection scatter plot with legend

2013-06-21 Thread Benjamin Root
Looks like you found a bug. It works properly with ax.plot(), but not for scatter(). Strange... As for contour(), it doesn't get a legend entry in the 2D case, so I wouldn't expect it to get a legend entry in the 3D case either. Could you file a bug report on github for this, please? Cheers! B

[Matplotlib-users] 3D-projection scatter plot with legend

2013-06-21 Thread Thomas Goebel
Hi list, i am plotting some data using scatter and contour method while using projection 3d. Now i want to label these two plots, but i get the following warning: " UserWarning: No labeled objects found. Use label='...' kwarg on individual plots. warnings.warn("No labeled objects

Re: [Matplotlib-users] 3d subplots, white space

2013-02-14 Thread Benjamin Root
On Thu, Feb 14, 2013 at 1:58 PM, Petro wrote: > Hi all, > I try to make a figure with 6 3d subplots. > My problem is that there is a lot white space around. I tried to play > with subplot_adjust, but without much success. > Any hints? > Thanks. > > If I remember correctly, what happens is that th

[Matplotlib-users] 3d subplots, white space

2013-02-14 Thread Petro
Hi all, I try to make a figure with 6 3d subplots. My problem is that there is a lot white space around. I tried to play with subplot_adjust, but without much success. Any hints? Thanks. -- Free Next-Gen Firewall Hardwar

Re: [Matplotlib-users] 3d plot: scatter() obeying the axis limits

2013-02-11 Thread Benjamin Root
On Sun, Feb 10, 2013 at 10:49 PM, Daniel Hyams wrote: > > When plotting a 3D plot, it is possible to have any points that are > outside the axis limits, not drawn? Basically, the same behavior as 2D > plots. > > Sample script and image attached. In the sample, I don't want to see the > z = -0.5

Re: [Matplotlib-users] 3d performance question

2012-12-18 Thread Michael Droettboom
On 12/18/2012 09:21 AM, Jason Grout wrote: > On 12/18/12 6:53 AM, Sturla Molden wrote: >> Interactive 2D plots can be sluggish too, if you have enough objects in >> them. It is not the backend that is sluggish. Replacing the backend does >> not speed up the frontend. >> >> OpenGL is only 'fast' if

Re: [Matplotlib-users] 3d performance question

2012-12-18 Thread Michael Droettboom
This is a great summary of the issues related to OpenGL, and how it can help but is not a universal panacea. Thanks, Mike On 12/18/2012 08:53 AM, Sturla Molden wrote: > Interactive 2D plots can be sluggish too, if you have enough objects in > them. It is not the backend that is sluggish. Replaci

Re: [Matplotlib-users] 3d performance question

2012-12-18 Thread Jason Grout
On 12/18/12 6:53 AM, Sturla Molden wrote: > Interactive 2D plots can be sluggish too, if you have enough objects in > them. It is not the backend that is sluggish. Replacing the backend does > not speed up the frontend. > > OpenGL is only 'fast' if you have a frontend that exploits it (e.g. uses >

Re: [Matplotlib-users] 3d performance question

2012-12-18 Thread Sturla Molden
Interactive 2D plots can be sluggish too, if you have enough objects in them. It is not the backend that is sluggish. Replacing the backend does not speed up the frontend. OpenGL is only 'fast' if you have a frontend that exploits it (e.g. uses vertex buffers and vertex shaders). If you just us

Re: [Matplotlib-users] 3d performance question

2012-12-14 Thread Ethan Gutmann
Hi Neal, my understanding is that matplotlib does not use OpenGL (thus the terrible performance you see). You might want to look into glumpy for mplot3d OpenGL acceleration. Ethan On Dec 14, 2012, at 5:23 AM, Neal Becker wrote: > I'm using fedora (17) linux. I notice on complicated 3d plot, i

[Matplotlib-users] 3d performance question

2012-12-14 Thread Neal Becker
I'm using fedora (17) linux. I notice on complicated 3d plot, interactive performance can get sluggish. I'm using nouveau driver now, but wondering if installing nvidia driver will improve mpl 3d performance? Does mpl use opengl? --

Re: [Matplotlib-users] 3d animated scatter plot

2012-11-11 Thread Benjamin Root
On Sun, Nov 11, 2012 at 1:42 PM, Andrew Dawson wrote: > Hi > > I'm trying to plot the trajectory of a particle in 3d using mplot3d. I > tried to follow the example of an animated 3d plot on the matplotlib > website but I'm having trouble with the updating of the data point being > plotted at each

[Matplotlib-users] 3d animated scatter plot

2012-11-11 Thread Andrew Dawson
Hi I'm trying to plot the trajectory of a particle in 3d using mplot3d. I tried to follow the example of an animated 3d plot on the matplotlib website but I'm having trouble with the updating of the data point being plotted at each frame. Does anyone know how to do this? So far I have: import nu

Re: [Matplotlib-users] 3d surfaces in basemap?

2012-10-27 Thread Benjamin Root
On Saturday, October 27, 2012, Andreas Hilboll wrote: > Hi, maybe matplotlib is capable of doing this: > > I have two gridded datasets, A and B, for say Europe. Now I want to plot > a 3d surface with the z-values given by dataset A. The surface should be > colored using a given color palette and t

Re: [Matplotlib-users] 3d surfaces in basemap?

2012-10-27 Thread Ethan Gutmann
Hi Andreas, Someone else, please correct me if I'm wrong, but I think the only way to do this is to provide your own "facecolors" map. Pick your preferred color map and apply it to dataset B, then now use mplot3d plot_surface(X,Y,Z_A,facecolors=B_colors). Assuming you are running inside pyla

[Matplotlib-users] 3d surfaces in basemap?

2012-10-27 Thread Andreas Hilboll
Hi, maybe matplotlib is capable of doing this: I have two gridded datasets, A and B, for say Europe. Now I want to plot a 3d surface with the z-values given by dataset A. The surface should be colored using a given color palette and the values from dataset B. Any ideas on how to do this are great

Re: [Matplotlib-users] 3D plot -- rotating axes label text?

2012-07-24 Thread Benjamin Root
On Tue, Jul 24, 2012 at 10:52 AM, Sami Niemi wrote: > Thanks Ben for your explanation. I have filed a feature request: > https://github.com/matplotlib/matplotlib/issues/1037 > > > Cheers, > Sami > > Sami, I did take a quick peek at the code to assess how much effort it would take to make it work

Re: [Matplotlib-users] 3D plot -- rotating axes label text?

2012-07-24 Thread Sami Niemi
Thanks Ben for your explanation. I have filed a feature request: https://github.com/matplotlib/matplotlib/issues/1037 Cheers, Sami On 24 Jul 2012, at 15:39, Benjamin Root wrote: > On Tue, Jul 24, 2012 at 10:10 AM, Sami Niemi wrote: > Hi, > > I have not managed to rotate the axes label text w

Re: [Matplotlib-users] 3D plot -- rotating axes label text?

2012-07-24 Thread Benjamin Root
On Tue, Jul 24, 2012 at 10:10 AM, Sami Niemi wrote: > Hi, > > I have not managed to rotate the axes label text when generating a 3D > plot, while in 2D everything works just fine. Here's a short snippet to > demonstrate: > > import matplotlib.pyplot as plt > from mpl_toolkits.mplot3d import Axes3

[Matplotlib-users] 3D plot -- rotating axes label text?

2012-07-24 Thread Sami Niemi
Hi, I have not managed to rotate the axes label text when generating a 3D plot, while in 2D everything works just fine. Here's a short snippet to demonstrate: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d')

Re: [Matplotlib-users] 3d contourf and ax.set

2012-06-16 Thread ananduri
Thanks Ben and Francesco. The zorder option didn't work, I'll use mayavi or try to make it work as is. And as for setting the z axis limits, I found that that line has to be placed after all plotting commands in the script. Benjamin Root-2 wrote: > > Ananduri, > > On Fri, Jun 15, 2012 at 8:47

Re: [Matplotlib-users] 3d contourf and ax.set

2012-06-15 Thread Benjamin Root
Ananduri, On Fri, Jun 15, 2012 at 8:47 AM, ananduri wrote: > > Hello, > > I have some minor questions regarding matplotlib. I'm using it to make a 3d > plot, displaying a surface, it's contour map, a line climbing the surface > and its projection onto the contour map. > > http://old.nabble.com/f

[Matplotlib-users] 3d contourf and ax.set

2012-06-15 Thread ananduri
Hello, I have some minor questions regarding matplotlib. I'm using it to make a 3d plot, displaying a surface, it's contour map, a line climbing the surface and its projection onto the contour map. http://old.nabble.com/file/p34015720/landscape_draft.png landscape_draft.png As you can see, wh

Re: [Matplotlib-users] 3D layered plot

2012-04-05 Thread Moore, Eric (NIH/NIDDK) [F]
> -Original Message- > From: Marston Johnston [mailto:shejo...@gmail.com] > Sent: Thursday, April 05, 2012 9:11 AM > To: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] 3D layered plot > > Hi Eric, > > For some reason I cannot see you

Re: [Matplotlib-users] 3D layered plot

2012-04-05 Thread Marston Johnston
Hi Eric, For some reason I cannot see your post on the webpage but I get your emails. My python doesn't have: art3d.poly_collection_2d_to_3d() Is this an old function that has been deprecated? I'm using matplotlib version 1.1.0 /M On Apr 5, 2012, at 10:47 AM, Marston wrote: > > This plot is p

Re: [Matplotlib-users] 3D layered plot

2012-04-05 Thread Moore, Eric (NIH/NIDDK) [F]
() -Eric > -Original Message- > From: Marston [mailto:shejo...@gmail.com] > Sent: Thursday, April 05, 2012 4:48 AM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] 3D layered plot > > > This plot is possible in MATLAB but I would like

[Matplotlib-users] 3D layered plot

2012-04-05 Thread Marston
This plot is possible in MATLAB but I would like to do this in matplotlib. See attached fig. In matlab the code is: a=peaks(20); b=peaks(20)+2*rand(20); c=rand(20); figure; hold on; ha=pcolor(a); hb=pcolor(b); hc=pcolor(c); set(hb,'zdata',0*b+5) set(hc,'zdata',0*c+10) This plot can then be rotat

[Matplotlib-users] 3d plotting

2012-03-18 Thread David Craig
Hi, I'm using surface_plot to view the results of solving the 2d wave equation. It works fine (code is below) except I would like to add a color bar and fix the limits on the vertical axis. When I add the color bar a new one is added in every iteration instead of overwriting the previous one, anyon

[Matplotlib-users] 3D plotting

2011-12-13 Thread Martella, C.
Hello, I have 2D array where each (x, y) cell represents the height of that point on the Z axis (you can think of it as the map of some mountain chain). I'd like to get the plot_surface() of this data. What I don't understand in particular is the content of the X, Y ,Z array parameter in my par

Re: [Matplotlib-users] 3D - aspect ratios

2011-10-26 Thread Benjamin Root
On Tuesday, October 25, 2011, Dylan Temple wrote: > Mr. Root, > > Thank you! That got the aspect ratio between the axes to be what I needed. I had one more question, however, when this aspect ratio is set the actual plot is very small (it shrinks the y and z axes significantly, obviously) howeve

Re: [Matplotlib-users] 3D - aspect ratios

2011-10-25 Thread Benjamin Root
On Tue, Oct 25, 2011 at 12:04 PM, Dylan Temple wrote: > > Matplotlib users, > > Hello, I am currently trying to create a 3D plot of a ships hull using the > plot_surface command in an instance of Axes3d. The default aspect ratio > for the surface_plot is a cube which, obviously, makes a silly lo

[Matplotlib-users] 3D - aspect ratios

2011-10-25 Thread Dylan Temple
Matplotlib users, Hello, I am currently trying to create a 3D plot of a ships hull using the plot_surface command in an instance of Axes3d. The default aspect ratio for the surface_plot is a cube which, obviously, makes a silly looking ship. The x-axis ranges from 0-150, the yaxis ranges from -

Re: [Matplotlib-users] 3D bar chart help!

2011-10-06 Thread Benjamin Root
On Wed, Oct 5, 2011 at 7:15 PM, Andrew C wrote: > Hello List Server, > > I am trying to take a raster dataset, getting the center points, and the z > value and trying to graph it in a 3D bar chart quite unsuccessfully. > > My data looks like this: > XCoord = [1,2,3,4] > YCoord = [1,2,3,4] > ZCoo

[Matplotlib-users] 3D bar chart help!

2011-10-05 Thread Andrew C
Hello List Server, I am trying to take a raster dataset, getting the center points, and the z value and trying to graph it in a 3D bar chart quite unsuccessfully. My data looks like this: XCoord = [1,2,3,4] YCoord = [1,2,3,4] ZCoord = [12,14,4,26] Those are the known locations, but there w

[Matplotlib-users] 3d navigation with zoom and rotate

2011-04-13 Thread Mathew Yeates
Hi Has anyone ever added this capability? I want to be able to rotate a projection of the earth. Thanks Mathew -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are disc

[Matplotlib-users] 3d tick setting in 1.0.1

2011-04-10 Thread Alan G Isaac
What is the status of tick setting in Axes3D? I see there were some issues possibly to be fixed by 1.0.1, but I'm running 1.0.1 and cannot properly set my ticks. Thanks, Alan Isaac -- Xperia(TM) PLAY It's a major breakthr

[Matplotlib-users] 3d labels problem

2011-04-10 Thread Alan G Isaac
If you look at the 3d scatter plot example in the tutorial http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.html#scatter-plots you will see exactly the labels problem I am running into. Can it be fixed? At a minimum, what is the right way to prevent the labels from overlapping the t

Re: [Matplotlib-users] 3d Surface-Contour Plot

2011-03-28 Thread Nicolas Bigaouette
On Mon, Mar 14, 2011 at 9:05 AM, herbie13 wrote: > > Hello, > > I basically have a Chi-Squared distribution that is dependent on 3 > variables. > eg. X2(x, y, z) > > What I would like to do is be able to plot the chi-squared + 1 surface in > 3-dimensions. > eg. I would like to have the three axes

[Matplotlib-users] 3D line segment plots?

2011-03-25 Thread Virgil Stokes
I have used the following code (taken from a matplotlib example) to produce a 3D plot of planar polygons, from mpl_toolkits.mplot3d import Axes3D from matplotlib.collections import PolyCollection from matplotlib.colors import colorConverter import matplotlib.pyplot as plt import numpy as np np.

[Matplotlib-users] 3d Surface-Contour Plot

2011-03-25 Thread herbie13
Hello, I basically have a Chi-Squared distribution that is dependent on 3 variables. eg. X2(x, y, z) What I would like to do is be able to plot the chi-squared + 1 surface in 3-dimensions. eg. I would like to have the three axes as x, y and z. and then have a surface (its going to look like a cl

Re: [Matplotlib-users] 3D Data to 2d Plots

2011-02-03 Thread Philipp A.
2011/2/3 Mike Alger > Sorry I was out of touch for a while I have been busy with other things, > > > > You would have to do some sort of a bin solution with the method I > suggested. So m/z values would not have to be exact but you would group > ranges of them together. > > > > To be honest base

Re: [Matplotlib-users] 3D Data to 2d Plots

2011-02-02 Thread Mike Alger
-28-11 10:55 AM To: Mike Alger Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] 3D Data to 2d Plots 2011/1/28 Mike Alger Philip, A few questions before I give one possible solution, Does this plot need to be updated in real time ? or is this plot to be done

Re: [Matplotlib-users] 3D Data to 2d Plots

2011-01-28 Thread Philipp A.
2011/1/28 Mike Alger > Philip, > > > > A few questions before I give one possible solution, > > > > Does this plot need to be updated in real time ? or is this plot to be done > in post processing? > > > > if you can do the plots with post processing you should be able to use > pcolor function to

Re: [Matplotlib-users] 3D Data to 2d Plots

2011-01-27 Thread Mike Alger
a 2d array but i am no expert on that mater. Good luck and hopefully this helps, Mike From: Philipp A. [mailto:flying-sh...@web.de] Sent: January-27-11 5:15 PM To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] 3D Data to 2d Plots Hi list, I want to

[Matplotlib-users] 3D Data to 2d Plots

2011-01-27 Thread Philipp A.
Hi list, I want to visualize Plots over time. This describes the data: [image: 3dplot.png] a) and b) are single scans, the cutting at the red bars is no problem. c) illustrates how they are done over time. d) is what I want. I think this plot

Re: [Matplotlib-users] 3d plot without marker edge

2010-10-15 Thread Daniel Hyams
Ugh, if I could only undo an email send 20 seconds after I hit go ;) If setting 'edgewidths' to 0 doesn't work, try setting 'edgecolors' to 'None' as per JDH's suggestion above, which is the same suggestion as mine except for the "marker" part of the property is removed. On Fri, Oct 15, 2010 at 1

Re: [Matplotlib-users] 3d plot without marker edge

2010-10-15 Thread Daniel Hyams
Since you are talking about markers, I assume that you made the plot with the scatter() function. The scatter() function creates the appropriate collection of patches (polygon, circle, etc.) depending on what the marker style was passed to it. As such, the normal 'marker*' properties do not work

Re: [Matplotlib-users] 3d plot without marker edge

2010-10-15 Thread John Hunter
On Fri, Oct 15, 2010 at 3:10 AM, Robert Fenwick wrote: > I have a 3d plot that I am trying to plot and I can not get rid of the marker > edge. an example would help What have you tried -- if line is a Line3D object, the following should work: line.set_markeredgecolor('None') Note that 'Non

[Matplotlib-users] 3d plot without marker edge

2010-10-15 Thread Robert Fenwick
Hi, I have a 3d plot that I am trying to plot and I can not get rid of the marker edge. an example would help Bryn -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(T

Re: [Matplotlib-users] 3d plot scientific notation problem on x and y axis.

2010-10-11 Thread Benjamin Root
On Sun, Oct 10, 2010 at 8:54 PM, Burak TUYSUZ wrote: > > I am trying to show the numbers at x and y axis in scientific notation but > it does not work. > Can anyone help me. > Thank you in advance. > Here is the code and fs is 60 000 000. > > >from matplotlib.ticker import ScalarFormatter >

[Matplotlib-users] 3d plot scientific notation problem on x and y axis.

2010-10-11 Thread Burak TUYSUZ
I am trying to show the numbers at x and y axis in scientific notation but it does not work. Can anyone help me. Thank you in advance. Here is the code and fs is 60 000 000. from matplotlib.ticker import ScalarFormatter formatter = ScalarFormatter(useMathText=True) formatter.set_scientif

Re: [Matplotlib-users] 3D surfaces and scatter plots have weird alpha behavior?

2010-10-04 Thread Erik Tollerud
You're right - if I just change the surface to be opaque, some of the scatter points randomly disappear and reappear depending on "camera" angle. So how does it decide which points are behind/in front of the surface, then? I can't figure out any obvious pattern... And is it possible to use the z

Re: [Matplotlib-users] 3D surfaces and scatter plots have weird alpha behavior?

2010-10-04 Thread Benjamin Root
On Mon, Oct 4, 2010 at 2:21 PM, Erik Tollerud wrote: > I've noticed some odd behavior in the mplot3d toolkit when using > scatter3D with plot_surface. What I want to do is generate the > surface with an alpha level of 0.5, such that any points that are > between me and the surface should come out

[Matplotlib-users] 3D surfaces and scatter plots have weird alpha behavior?

2010-10-04 Thread Erik Tollerud
I've noticed some odd behavior in the mplot3d toolkit when using scatter3D with plot_surface. What I want to do is generate the surface with an alpha level of 0.5, such that any points that are between me and the surface should come out fully opaque, and any points behind the surface should be ren

Re: [Matplotlib-users] 3d animation

2010-08-21 Thread Benjamin Root
On Sat, Aug 21, 2010 at 2:39 PM, Benjamin Root wrote: > > > On Sat, Aug 21, 2010 at 7:03 AM, David Pine wrote: > >> Is it possible to do animation with the mplot3d toolkit? It seems like it >> ought to work but I am having trouble. In particular, it seems that the >> set_xdata and set_ydata co

Re: [Matplotlib-users] 3d animation

2010-08-21 Thread Benjamin Root
On Sat, Aug 21, 2010 at 7:03 AM, David Pine wrote: > Is it possible to do animation with the mplot3d toolkit? It seems like it > ought to work but I am having trouble. In particular, it seems that the > set_xdata and set_ydata commands do not work. I would imagine you need a > set_zdata functi

[Matplotlib-users] 3d animation

2010-08-21 Thread David Pine
Is it possible to do animation with the mplot3d toolkit? It seems like it ought to work but I am having trouble. In particular, it seems that the set_xdata and set_ydata commands do not work. I would imagine you need a set_zdata function as well but that seems not to exist, which suggests tha

Re: [Matplotlib-users] 3d plotting without ticklabels

2010-08-03 Thread Jae-Joon Lee
On Wed, Aug 4, 2010 at 12:11 AM, Benjamin Root wrote: > I have done some further research on this, and it appears to be a bug of > some sort.  Possibly the Locators are already made by the time the > ax.set_xticks([]) is called and that function falls on deaf ears because the > real xaxis is actua

Re: [Matplotlib-users] 3d plotting without ticklabels

2010-08-03 Thread Benjamin Root
On Mon, Jun 14, 2010 at 2:14 AM, Ola Skavhaug wrote: > On Fri, Jun 11, 2010 at 4:50 PM, Benjamin Root wrote: > > Ola, > > > > Just to make sure, have you tried "ax.set_xticks([])"? > > Yes, I have tried that, but without success. Looks like the tick-logic > is overridden for 3d plotting. Or at l

Re: [Matplotlib-users] 3d plotting without ticklabels

2010-07-31 Thread skorpio11
Bump. Is this possible using mplot3d?? I would, also like to turn off the ticks and the tick labels. skavhaug wrote: > > On Fri, Jun 11, 2010 at 4:50 PM, Benjamin Root wrote: >> Ola, >> >> Just to make sure, have you tried "ax.set_xticks([])"? > > Yes, I have tried that, but without success

Re: [Matplotlib-users] 3d plotting without ticklabels

2010-06-14 Thread Ola Skavhaug
On Fri, Jun 11, 2010 at 4:50 PM, Benjamin Root wrote: > Ola, > > Just to make sure, have you tried "ax.set_xticks([])"? Yes, I have tried that, but without success. Looks like the tick-logic is overridden for 3d plotting. Or at least, I cannot figure out how it works. Ola > Ben Root > > > > On

Re: [Matplotlib-users] 3d plotting without ticklabels

2010-06-11 Thread Benjamin Root
Ola, Just to make sure, have you tried "ax.set_xticks([])"? Ben Root On Fri, Jun 11, 2010 at 3:05 AM, Ola Skavhaug wrote: > Hi, > > I'm trying to remove the xtickmarks and ytickmarks from a 3d plot, > without any success. > > The example I experiment with is the following: > > from mpl_toolk

[Matplotlib-users] 3d plotting without ticklabels

2010-06-11 Thread Ola Skavhaug
Hi, I'm trying to remove the xtickmarks and ytickmarks from a 3d plot, without any success. The example I experiment with is the following: from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot as plt fig = plt.figure() ax = axes3d.Axes3D(fig) X, Y, Z = axes3d.get_test_data(0.05) cse

Re: [Matplotlib-users] 3d pie charts

2010-03-23 Thread Jae-Joon Lee
You need to define your own path (or you may combine a wedge and rectangles). This may be helpful. http://matplotlib.sourceforge.net/users/path_tutorial.html Regards, -JJ On Sat, Mar 20, 2010 at 2:33 PM, Gary Jaffe wrote: > Hi all -- > > I'm new to Matplotlib, and it looks like a great proje

[Matplotlib-users] 3d pie charts

2010-03-20 Thread Gary Jaffe
Hi all -- I'm new to Matplotlib, and it looks like a great project, but I'm having trouble figuring out one thing. I would like to draw a pie chart, but have each wedge appear to have thickness. I see from the examples and the docs that it is possible to draw a wedge in relief so that it appears

[Matplotlib-users] 3D output to pdf for animation?

2010-01-21 Thread Mark Bakker
Hello List, I know I may be hoping for too much, but is there a way to get the 3D figures into a file that may be converted to an animated pdf? Pdf now allows for inclusion of a 3D figure, and as far as I can see it needs to be in U3D or PRC format. Has anybody been successful converting any of

Re: [Matplotlib-users] 3D semilog plot

2009-12-14 Thread Trevor Irons
Thanks, This almost does what I want. The labels are now changed to log notation, but the tick locations have remained the same. I want the spacing between each logarithmic decade to be equal. I just did an svn up and rebuild so I am working with bleeding edge matplotlib. Do I need to manually set

Re: [Matplotlib-users] 3D semilog plot

2009-12-13 Thread Reinier Heeres
Hi, You'll have to use ax.w_yaxis.set_yscale('log'), which should work fine. Hope this helps, Reinier On Tue, Dec 8, 2009 at 5:11 PM, Trevor Irons wrote: > Hi: > > I'm trying to get a semilog 3D plot. I want to plot several 2D time series > lines, with the third axis being on a log scale. I am

[Matplotlib-users] 3D semilog plot

2009-12-08 Thread Trevor Irons
Hi: I'm trying to get a semilog 3D plot. I want to plot several 2D time series lines, with the third axis being on a log scale. I am trying to set an axis to log using ax.set_yscale('log'), but am getting errors. Is this possible? I keep getting numpy errors when I try: raise MaskError, 'Cannot c

Re: [Matplotlib-users] 3D

2009-12-07 Thread Pierre de Buyl
Hello, The Axes3D constructor accepts the keywords "azim" and "elev" to set the viewpoint of the figure. As for the title, I could not find information in the examples or the api, so I suggest to add text with the text method. This solution lacks an automatic placement for the title, howeve

[Matplotlib-users] 3D

2009-12-06 Thread David Arnold
All, I have: from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot as plt import numpy as np fig=plt.figure() ax=axes3d.Axes3D(fig) x=np.linspace(-2,2,40) y=np.linspace(-2,2,40) X, Y=np.meshgrid(x,y) Z=6-2*X**2 ax.plot_wireframe(X,Y,Z) ax.set_xlabel('x-axis') ax.set_ylabel('y-axis')

[Matplotlib-users] 3D Axis : set marker size and color

2009-11-09 Thread luc Estebanez
Dear All, I am new to the list, so hello everyone ! I am trying to use the new 3D facilities offered by Matplotlib, and I can't manage to vary the color and/or size of the markers when doing 3D scatter plots : fig = plt.figure() ax = Axes3D(fig) ax.scatter([1,2,3],[3,1,2],[1,2,0],c='r',s=[4,10

[Matplotlib-users] 3d plots: set view angle (azimuth and elevation)

2009-09-19 Thread Kevin Dunn
Thanks for a great library and excellent documentation. I'm using mpl_toolkits.mplot3d.Axes3D (version 0.99.0) to generate a 3D scatter plot and the web examples have been very useful so far. But I have these questions to which I can't find answers in the mailing lists or the website: a) can you

Re: [Matplotlib-users] 3D Bar (histogram) question

2009-07-11 Thread John Hunter
On Tue, Jul 7, 2009 at 1:26 PM, Nicolas Bigaouette wrote: > Hi, > > I compiled matplotlib svn revision 7246 yesterday to try the 3D stuff. > > From mpl's website, an example for 3D bar plotting is shown[1]. I just don't > understand the axes. From the code, shouldn't X values go from 0 to 20, > ins

[Matplotlib-users] 3D Bar (histogram) question

2009-07-07 Thread Nicolas Bigaouette
Hi, I compiled matplotlib svn revision 7246 yesterday to try the 3D stuff. >From mpl's website, an example for 3D bar plotting is shown[1]. I just don't understand the axes. From the code, shouldn't X values go from 0 to 20, instead of 0 to 400 000 like shown on the graph? Where does these values

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Cohen-Tanugi Johann
http://gael-varoquaux.info/physics/slides_Scipy2007.pdf for a good intro to the high level mayavi API. Johann Etienne Gaudrain wrote: > Ok, I'll go for Mayavi. I am reasonably impressed by the demos. I > haven't been to far into the documentation and I hop I won't regret my > choice. But it lo

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Etienne Gaudrain
Ok, I'll go for Mayavi. I am reasonably impressed by the demos. I haven't been to far into the documentation and I hop I won't regret my choice. But it looks great so far. Thanks for your help !! -Etienne Etienne Gaudrain wrote: > Hello list ! > > This is probably a recurrent topic, or even

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Etienne Gaudrain
Waouuuh ! These screenshots look awsome ! A shame this package is not in my Ubuntu repository. I'm a bit lazy, and I want a long-term solution, which supposes auto-update... -Etienne Andy Buckley wrote: > > You might also be interested in Nicholas Rougier's SciGL project, which > (IIRC) was st

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Etienne Gaudrain
Thanks Barry. I still don't know whether I want to use Gnuplot.py or Mayavi. Gnuplot is built on a very stable base, so I would be sure to have few surprises with future developments. But maybe it is too old and will not pass the Python3k step... I gave a look to Mayavi, and the start is prett

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Andy Buckley
Barry Wark wrote: > On Mon, Mar 23, 2009 at 6:11 AM, Etienne Gaudrain wrote: >> Thanks a lot for the link, and for the suggestions! >> I will probably give a go to Mayavi2, but given how heavy it seems to be >> (compared to matplotlib) it probably requires some custom wrapping... >> which means ag

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Barry Wark
On Mon, Mar 23, 2009 at 6:11 AM, Etienne Gaudrain wrote: > Thanks a lot for the link, and for the suggestions! > I will probably give a go to Mayavi2, but given how heavy it seems to be > (compared to matplotlib) it probably requires some custom wrapping... > which means again a lot time investmen

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Etienne Gaudrain
Thanks for all these pointers! I am well aware and respectful of the open source philosophy, and please do not see a criticism toward the work of the developers in my e-mail... just a lost user seeking advice, wanting to understand what happened to catch the train I apparently missed during the

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Etienne Gaudrain
Thanks a lot for the link, and for the suggestions! I will probably give a go to Mayavi2, but given how heavy it seems to be (compared to matplotlib) it probably requires some custom wrapping... which means again a lot time investment... thanks for the tips anyway! Cheers, -Etienne Gary Ruben

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Gary Ruben
Hi Etienne, Sorry to hear about your disappointment. You can read about the attempt to resurrect the 3D plotting capabilities here: Unfortunately, this doesn't help you right now. Depending on the type of 3D pl

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Jouni K . Seppänen
Etienne Gaudrain writes: > This is probably a recurrent topic, or even more probably HAVE been a > recurrent topic... So sorry, sorry, sorry... I wanted to search the > archives but Sourceforge is very slow today (...). I don't think the Sourceforge search has ever been very useful. Try Gmane,

[Matplotlib-users] 3D plots

2009-03-23 Thread Etienne Gaudrain
Hello list ! This is probably a recurrent topic, or even more probably HAVE been a recurrent topic... So sorry, sorry, sorry... I wanted to search the archives but Sourceforge is very slow today (...). Anyway, here is my question: Is it right that Matplotlib can no longer plot 3D graphes? The

Re: [Matplotlib-users] 3D histogram

2008-11-02 Thread martin.druon
Hi, this is my best result... figure is acceptable when I use a lot of points... #!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib import matplotlib.art3d import matplotlib.axes3d import pylab if __name__ == "__main__": data_filename = ... # We load data # #

Re: [Matplotlib-users] 3d + log

2008-07-08 Thread Eric Firing
Yves Revaz wrote: > Hi all, > > Is there a way to define logarithmic axes when using axes3d ? > > lines like > ax = axes3d.Axes3D(fig) > > ax.semilogx() > or > ax.set_xscale('log') > > fail ! > > Thanks, > > yves > You are on your own with axes3d. It has been unmaintained for a long time,

[Matplotlib-users] 3d + log

2008-07-08 Thread Yves Revaz
Hi all, Is there a way to define logarithmic axes when using axes3d ? lines like ax = axes3d.Axes3D(fig) ax.semilogx() or ax.set_xscale('log') fail ! Thanks, yves -- (o o) oOO--(_)--OOo--- Yv

[Matplotlib-users] 3D histogram

2008-04-30 Thread Martin DRUON
Hi, I would like to generate (or simulate) 3D histogram... How I can do this with matplotlib/pylab (if I can) ? I tried different ways : - 2D histogram in 3D but the result is not usable for me (because I have lot of small bars) - generation of bars with, for each bar, 5 Polygons but I didn't

[Matplotlib-users] 3d filled triangle (polygon)

2008-03-21 Thread Ulrich Dorda
Hi , I am trying to plot a filled triangle (or if possible any filled polygon) in 3D. I am afraid, I am missing something very basic here. I'd like to do something like: x=[0,1,1] #coordintes of the three corners y=[0,0,1] z=[3,8,1] ax.plane(x,y,z,facecolor='r') So far I tried the "plot_surfac

[Matplotlib-users] 3d graph combined with a 2D contour

2008-03-13 Thread Andy Cheesman
Hi people Using the axes3d functionality, I am able to create 3D graph of desired mathematical functions ala the cookbook example. However, it would be useful to be able to have a 2D contour plot upon the xy plane of a graph at the same time. I've googled to no avail and wondered if someone

[Matplotlib-users] 3D plot tick labels overlap axes

2007-08-14 Thread Sim Harbert
When I updated from Matplotlib 0.90 to 0.90.1 the axis tick labels started overlaping the axes themselves. In 0.90 they are slightly offset and are readable, but in 0.90.1 they are very hard to read. Is there some way I can fix this easily? I guess I can roll back to 0.90 since I don't seem t

Re: [Matplotlib-users] 3D plotting support

2007-08-14 Thread Tom Denniston
You might take a look at tvtk.mlab and mavayi. http://www.scipy.org/Cookbook/MayaVi On 8/14/07, Eric Firing <[EMAIL PROTECTED]> wrote: > Kaushik Ghose wrote: > > Hi Everyone, > > > > I vaguely remember a comment from a poster a short while back that > > suggested that 3D support in matplotlib w

Re: [Matplotlib-users] 3D plotting support

2007-08-14 Thread Eric Firing
Kaushik Ghose wrote: > Hi Everyone, > > I vaguely remember a comment from a poster a short while back that > suggested that 3D support in matplotlib was not serious. I would like to > ask what plans there are for 3D plotting support in this great library. There are no plans. The topic keeps co

  1   2   >