[Matplotlib-users] 2D Radial Plots

2007-06-25 Thread Lorenzo Isella
Dear All, I am quite a newbie about Python and Pylab, but I am starting to like the ease you can develop with using these tools. I am interested in 2D radial plots (think for instance about the plot of the temperature along the cross-section of a pipe). I had a look at the tutorial online, in

Re: [Matplotlib-users] 2D Radial Plots

2007-06-26 Thread Lorenzo Isella
, Lorenzo Isella [EMAIL PROTECTED] wrote: Hello, Thanks for your suggestion, but I still have a problem. Maybe I did not make myself clear (or most likely I have a problem about how to implement your suggestion): actually I have T=T(r,theta) and I would like to make a 2D plot using colors

[Matplotlib-users] Problem with linear plot after semilog plot

2007-07-06 Thread Lorenzo Isella
Dear All, I am a bit puzzled at an unusual problem I am experiencing. Fundamentally, I call a couple of functions and I plot some data. First, I create a semilog plot using pylab.semilogx, then I make a normal linear plot. But, in the second case I get an error message: Traceback (most recent

[Matplotlib-users] Color Bar in Contour Plot

2007-07-24 Thread Lorenzo Isella
Dear All, Some weeks ago I emailed the list asking how to represent data on a non-rectangular domain (namely a velocity component along a tube cross-section in my case). I now can tell that everything goes as in the example described by Hansen in Matplotlib-users Digest, Vol 14, Issue 13, which

[Matplotlib-users] Bug in pylab?

2008-01-15 Thread Lorenzo Isella
Dear All, I am sending this email out of frustration, but I hope that someone will be able to tell me what is going on. I am using pylab on a Debian testing box. I have the feeling that there is some problem with pylab when I alternate, as I am doing now, many linear and log-log plots. Very

Re: [Matplotlib-users] Bug in pylab?

2008-01-15 Thread Lorenzo Isella
. Cheers Lorenzo Darren Dale wrote: Hi Lorenzo, On Tuesday 15 January 2008 4:14:24 pm Lorenzo Isella wrote: Dear All, I am sending this email out of frustration, but I hope that someone will be able to tell me what is going on. I am using pylab on a Debian testing box. I have

[Matplotlib-users] Problem with axvline

2008-03-05 Thread Lorenzo Isella
Dear All, I am running Debian testing on my box and I installed matplotlib from the standard repositories. From time to time I experience a problem when plotting several figures. Consider the following code snippet: #! /usr/bin/env python import scipy as s import numpy as n import pylab as p

[Matplotlib-users] Latex in Figures

2008-03-18 Thread Lorenzo Isella
Dear All, I think the solution to my problem must be a one-liner, but I have been unsuccessful. I am trying to use latex formulas (nothing dramatically complicated) inside a figure. I suppose everything is working correctly on my system. I tried running the example at:

[Matplotlib-users] PDF broken in Pylab?

2008-05-02 Thread Lorenzo Isella
Dear All, I am running Debian testing on my box and I use pylab as installed from the standard repositories. Unfortunately, it seems that there is something broken either with pylab or Python (I have been upgrading the system these days) since I am now unable to create .pdf files: For instance,

[Matplotlib-users] Problems in importing Pylab

2008-10-24 Thread Lorenzo Isella
Dear All, I am running Debian testing on my box. I had not used Python for about a couple of weeks (during which I updated my system regularly) only to find out that today I have a trouble if I try to import pylab. See below what happens In [1]: import pylab as p

Re: [Matplotlib-users] Problems in importing Pylab

2008-10-24 Thread Lorenzo Isella
Perfect; that saved my day. Many thanks Lorenzo 2008/10/24 Angus McMorland [EMAIL PROTECTED]: 2008/10/24 Lorenzo Isella [EMAIL PROTECTED]: Dear All, I am running Debian testing on my box. I had not used Python for about a couple of weeks (during which I updated my system regularly) only

[Matplotlib-users] Plotting Scalar on a Circular Grid

2009-04-01 Thread Lorenzo Isella
Dear All, I am having a hard time with something which must be fairly doable: I would like to plot a simple scalar function on a circular domain. Consider for instance a trivial modification of one of the online examples: Code 1 #!/usr/bin/env python See pcolor_demo2 for a much faster way of

Re: [Matplotlib-users] Plotting Scalar on a Circular Grid

2009-04-03 Thread Lorenzo Isella
, Lorenzo Isella lorenzo.ise...@gmail.com wrote: Now, I would like to plot exactly the same function but on a circular domain (circle of radius 1 centered at (0,0)). You have an image with x,y spanning from -1 to 1. How do you transform your x,y coordinate to r, theta? Or, x,y in your example

Re: [Matplotlib-users] Plotting Scalar on a Circular Grid

2009-04-06 Thread Lorenzo Isella
Hello, So maybe a couple of images can help. Using the code #!/usr/bin/env python See pcolor_demo2 for a much faster way of generating pcolor plots from __future__ import division from pylab import * def func3(x,y): return (1- x/2 + x**5 + y**3)*exp(-x**2-y**2) def func4(x,y):

[Matplotlib-users] Adding Arrows to Polar Plot

2010-10-15 Thread Lorenzo Isella
Dear All, I am not very much into matplotlib, so please bear with me if I am asking a trivial question. I put together this small snippet with the help I got on the mailing list and using the arrow example at http://bit.ly/cI9dqj . My problem is (or at least I believe it to be) the fact that I

[Matplotlib-users] Plot Minor Tweaking

2010-10-21 Thread Lorenzo Isella
Dear All, Please consider the snippet at the end of the email. Admittedly, I am still quite cumbersome with the matplotlib pipeline (I am a bit unsure about how to manipulate objects and their properties). The snippet below produces two plots. I have some questions (1) for both plots: how do I

[Matplotlib-users] Plot Minor Tweaking

2010-10-22 Thread Lorenzo Isella
Dear All, Please consider the snippet at the end of the email. Admittedly, I am still quite cumbersome with the matplotlib pipeline (I am a bit unsure about how to manipulate objects and their properties). The snippet below produces two plots. I have some questions (1) for both plots: how do I add

[Matplotlib-users] How to Reduce White Space Around Figure?

2010-10-25 Thread Lorenzo Isella
Dear All, I am aware that this question has already been asked several times on the mailing list, see e.g. http://bit.ly/aPzQTA However, in the following snippet, nothing I tried has been able to reduce the amount of white space around the figure (including toying around with ax =

Re: [Matplotlib-users] How to Reduce White Space Around Figure?

2010-10-25 Thread Lorenzo Isella
On 10/25/2010 11:36 PM, Benjamin Root wrote: , bbox_inches='tight' Hi, And thanks for your suggestion. The improvement (if any) if unfortunately rather modest. I'd like to hear about the other tricks. Cheers Lorenzo

Re: [Matplotlib-users] How to Reduce White Space Around Figure?

2010-10-26 Thread Lorenzo Isella
of matplotlib. Keep up the good work. Cheers Lorenzo On 10/26/2010 06:07 AM, Tony S Yu wrote: On Oct 25, 2010, at 12:56 PM, Lorenzo Isella wrote: Dear All, I am aware that this question has already been asked several times on the mailing list, see e.g. http://bit.ly/aPzQTA However

[Matplotlib-users] Convex Hull -- Question about Point Size

2016-04-14 Thread Lorenzo Isella
Dear All, Thanks to what I found here http://bit.ly/1qJlWkP I discovered how to plot the convex hull around a set of points (please have a look at the script pasted at the end of the email). Everything is almost done,but I have a problem: my "points" are not really point-like: they are sphere