[Matplotlib-users] mulidimension data

2017-06-27 Thread Diego Avesani
Dear all Matplotlib Users, I would like to plot a multidimensional plot. I have found this script: multidimension script The scrip is the second one. It works perfectly. However, I have a problem with the

[Matplotlib-users] surface without lines + circular domain

2015-02-16 Thread Diego Avesani
Dear all, I have two problems. 1) I would like to plot a 3D surface, but without lines. 2) I would like to plot the surface on a circular domain. I mean, this is a piece of my code X = np.arange(0, 1, 0.05) Y = np.arange(0, 1, 0.05) X, Y = np.meshgrid(X, Y) R = np.sqrt(X**2 + Y**2) Z =

Re: [Matplotlib-users] Patch + facecolors

2014-12-06 Thread Diego Avesani
Dear all, Dear Benjamin, Dear Sappy85, probably I miss the meaning of structured and not-structured grid. In my grid I have only rectangular element, but they are not regular. Here an example. In what follows you can see the x and y vector of the point of one rectangle: X=0.1000 0.5950 0.5659

[Matplotlib-users] Patch + facecolors

2014-12-05 Thread Diego Avesani
Dear matplotlib users, I would like to know if there is in matplotlib the following Matlab function: *p=patch(x(TRI'),y(TRI'),u(TRI'),u(TRI'));* *set(p,'FaceColor','interp','EdgeColor','black');* where TRI are the coordinate of many non regular rectangles. I would like to do that because I

[Matplotlib-users] create a video with no black bands

2014-03-12 Thread Diego Avesani
dear Matplotlib users, I have tried to create a video with many *.png files. The problem is that the videos has black bands on the right and on the left. How Can I create a video but without black bands? Thanks a lot Diego

[Matplotlib-users] scatter3D error (color + transparancy)

2012-12-27 Thread Diego Avesani
dear all, this is my code: *import numpy as np* *import matplotlib.pyplot as plt* *from mpl_toolkits.mplot3d import Axes3D* *data1Dx = np.genfromtxt('output.dat')* *xp = data1Dx[:,0]* *yp = data1Dx[:,1]* *zpA = data1Dx[:,1]*0+5* *CA = data1Dx[:,2]* *CB = data1Dx[:,3]* *# Create Map* *cm

[Matplotlib-users] rectangle 3D with transparency

2012-12-26 Thread Diego Avesani
Dear all, I need to plot a 2D rectangle in a 3D plot. I already know how to put a circle. I have started from: http://matplotlib.org/examples/mplot3d/pathpatch3d_demo.html and inserting the alpha parameter. *p = Circle((5, 5), 2,alpha=0.1)* *ax.add_patch(p)* *art3d.pathpatch_2d_to_3d(p,

Re: [Matplotlib-users] rectangle 3D with transparency

2012-12-26 Thread Diego Avesani
dear Paul, thanks a lot it works Diego On 26 December 2012 14:53, Paul Hobson pmhob...@gmail.com wrote: On Wed, Dec 26, 2012 at 6:49 AM, Diego Avesani diego.aves...@gmail.comwrote: Dear all, I need to plot a 2D rectangle in a 3D plot. I already know how to put a circle. I have started

[Matplotlib-users] clabel3D, is it possible?

2012-12-16 Thread Diego Avesani
dear all, I have plot a 3D picture, I would like to have xy projection with contours levels and labels. The contours works but I do not get the labels. This is my code: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import axes3d, Axes3D fig = plt.figure() ax = Axes3D(fig) #-- Note