[Matplotlib-users] How do I get Missing Modules?

2008-03-04 Thread Ssebuliba, J, Mnr <[EMAIL PROTECTED]>
Hi there, When I use; import matplotlib.pyplot as p, I get an error message; ImportError: No module named pyplot. So, how am I supposed to get these missing modules? Please note: I am using Linux (Ubuntu-gusty)! Regards, JOE.

[Matplotlib-users] Using math text!

2008-03-04 Thread Ssebuliba, J, Mnr <[EMAIL PROTECTED]>
Hi all, When I use; text(0.6, 0.6, r'$\mathcal{A}\mathrm{sin}(2 \omega t)$', fontsize=20) I get an error message below; File "/usr/lib/python2.5/site-packages/matplotlib/mathtext.py", line 616, in _get_info raise ValueError('unrecognized symbol "%s"' % sym) ValueError: unrecognized symbol "\

[Matplotlib-users] ImportError: No module named pylab

2007-11-07 Thread [EMAIL PROTECTED]
t it still doesn't work) Do you know if there is a conflict between scipy, matplotlib and pylab. Problems seem to have started after I installed scipy from the home:ashigabou.repo repository. I can import pylab from an interactive prompt: [EMAIL PROTECTED] ~] $ python Python 2.5 (r25:5190

Re: [Matplotlib-users] contourf question

2007-10-04 Thread [EMAIL PROTECTED]
Thanks again Eric, Your examples are exactly what I was after. My colleague was hypothesizing that there's probably a less-than instead of a less-than-or-equal somewhere, if it is a bug. regards, Gary Eric Firing <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: &

Re: [Matplotlib-users] contourf question

2007-10-04 Thread [EMAIL PROTECTED]
ned in the docstring under Obsolete:, but it seems to do nothing, so it should probably be removed from the docstring. thanks again, Gary Eric Firing <[EMAIL PROTECTED]> wrote: > Gary Ruben wrote: > > I'm notice that contourf behaves differently to contour by default in &g

[Matplotlib-users] basemap stereographic projection problem

2007-05-31 Thread [EMAIL PROTECTED]
I've been trying to help a friend who wants to plot directional data on a "Wulff net" , which is a stereographic projection plot. She wants to plot points specified by latitude and longitude in degrees. We hoped to be able to

Re: [Matplotlib-users] (sf)mathtext fonts + custom LaTeX preamble

2007-01-10 Thread Randewijk, P-J &lt;[EMAIL PROTECTED]>
ption to add to the default LaTeX preamble used by texmanager.py & backend_ps.py, e.g.: rcParams['latex.preamble']=r"""\usepackage{amsmath,amssymb} \usepackage[afrikaans]{babel} \usepackage[iso,english]{isodate} \usepackage{numprint} """ Kind regards,

Re: [Matplotlib-users] can contour be drawed in "vector mode"?

2006-12-24 Thread [EMAIL PROTECTED]
> contourf is not drawing in raster mode--it is generating filled > polygons. What you are seeing is the fact that when it follows the edge > of a masked region, it does so in a stairstep fashion. This is inherent > in the algorithm being used. it seems that the filled polygon is composed of

[Matplotlib-users] can contour be drawed in "vector mode"?

2006-12-23 Thread [EMAIL PROTECTED]
Hi, matplotlib can make a contour plot on a masked array z using contourf(x,y,z).but it seems that it draws in a raster mode.there is sawtooth at the edge of the picture when it is zoomed.can contour be drawed in a vector mode? i means that 1) give an array z which has not been masked. 2) contourf

[Matplotlib-users] surface_create_for_array() argument 1 must be array, not numpy.ndarray

2006-12-23 Thread [EMAIL PROTECTED]
hi, TypeError happened when I ran contour_demo.py -dGtkCairo,Can anybody tell me the reason? TypeError: surface_create_for_array() argument 1 must be array, not numpy.ndarray - window xp python24 matplotlib 0.87 -- <> ---

Re: [Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread [EMAIL PROTECTED]
> Shu: I'd make a mask by finding the points on the grid that are outside > your polygon. Then use that mask to create a masked array from your > data (masking the points you don't want to plot). matplotlib's contourf > knows how to deal with masked arrays (at least when the masked region >

Re: [Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread [EMAIL PROTECTED]
> How is the irregular boundary defined? Is it defined in terms of the > data you are plotting (i.e. all values exceeding a threshold)? Or, do > you have the vertices of a polygon you want to use as a mask? > > -Jeff Jeff, thanks for answering my question. I have the vertices of a polygon

[Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread [EMAIL PROTECTED]
hi,everybody.first say sorry for my poor english.This is my first email to matplotlib user list. I want to make a contour plot with part out of the irregular boundary blank.just as http://www.pyngl.ucar.edu/Examples/Images/ngl05p.3.png shows. how can i do? -- <> --

[Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread [EMAIL PROTECTED]
hi,everybody.first say sorry for my poor english. I want to make a contour plot with part out of the irregular boundary blank.just as http://www.pyngl.ucar.edu/Examples/Images/ngl05p.3.png shows. how can i do? -- <> - Tak

[Matplotlib-users] (no subject)

2006-11-16 Thread [EMAIL PROTECTED]
Hello at all. I need to do a real time plot where on the frame i have this like limit line: import math dati = [] for freq in range(int(freqiniziale), (int(freqfinale)+ 1)): forza = float(massa) * ((2*math.pi*freq)**2)/10 dati.append(forza)

[Matplotlib-users] Real time

2006-11-14 Thread [EMAIL PROTECTED]
Hello at all I have to do the following: I have tu use as base grap the following: def calibrazione(self, massa, ampveliniziale, freqiniziale, freqfinale , freqps, avps, freqss, avss): import math dati = [] for freq in range(int(freqiniziale),

[Matplotlib-users] Type Error

2006-11-13 Thread [EMAIL PROTECTED]
Hello I have installed matplotlib on su 10.0 when i do only this example from pylab import * plot([1,2,3]) i get this error: only length-1 attays can be converted to Python scalars. How i have made wrong? Regards Luca -- Mutui a tassi

[Matplotlib-users] histogram bug

2006-07-20 Thread [EMAIL PROTECTED]
The following minimal script reveals a rendering problem with displaying a histogram on a log vertical axis. I'm using matplotlib0.87.4 in WinXP with python 2.3.5 Enthon. from pylab import * hist(rand(100), 20, bottom=1) setp(gca(), yscale="log") show() Gary R.