Re: [Matplotlib-users] Two bugs when plotting date/time histograms

2009-01-08 Thread Eric Firing
Simson Garfinkel wrote: > Thanks, Eric. Any idea for a work-around on the bar graphs? There appear to be three problems, each with a workaround or solution: 1) You need to set the log scale *before* calling bar. The bar method checks for log scaling, and if found, it sets the bottom of the bars

Re: [Matplotlib-users] Basic matplotlib configuration question

2009-01-08 Thread David Lees
Scott Sinclair wrote: 2009/1/7 David Lees : I just installed the windows prebuilt packages for Python 2.5 for: numpy, scipy and finally matplotlib. I get the following import problem: >>> import pylab Traceback (most recent call last): File "", line 1, in File "C:\Python25\Lib\site-packages

Re: [Matplotlib-users] Two bugs when plotting date/time histograms

2009-01-08 Thread Simson Garfinkel
Thanks, Eric. Any idea for a work-around on the bar graphs? As far as the Mac goes, I'm happy to get you a log-in on one, if you want. -Simson On Jan 8, 2009, at 2:31 PM, Eric Firing wrote: > Simson Garfinkel wrote: >> Hi! >> Below is a sample program. It demonstrates two bugs when plotting

Re: [Matplotlib-users] Integer to colormap color value

2009-01-08 Thread Jonathan Helmus
Unless I'm mistaken the following should give you the results you're looking for: cmap = mpl.cm.jet ##I set colomap to 'jet' norm = mpl.colors.Normalize(vmin=5, vmax=15) exampleInt = 7 exampleColor = cmap( norm(7) ) poly = Polygon(seq,facecolor=exampleColor) ax.add_pat

Re: [Matplotlib-users] Two bugs when plotting date/time histograms

2009-01-08 Thread Eric Firing
Simson Garfinkel wrote: > Hi! > > Below is a sample program. It demonstrates two bugs when plotting date/ > time histograms. > > 1. When the y scale is made "log", the histogram points plot as > lines, but when the y scale is not log, they histogram plots as bars. > I do not think that the

Re: [Matplotlib-users] Integer to colormap color value

2009-01-08 Thread John Hunter
On Thu, Jan 8, 2009 at 3:53 PM, AlsCdz wrote: > > I have something like (only the important bits of code): > >cmap = mpl.cm.jet ##I set colomap to 'jet' >norm = mpl.colors.Normalize(vmin=5, vmax=15) > >exampleInt = 7 >##Here i would need a color value of 7 (in 5-15 range of jet co

[Matplotlib-users] Integer to colormap color value

2009-01-08 Thread AlsCdz
I have something like (only the important bits of code): cmap = mpl.cm.jet ##I set colomap to 'jet' norm = mpl.colors.Normalize(vmin=5, vmax=15) exampleInt = 7 ##Here i would need a color value of 7 (in 5-15 range of jet colormap) poly = Polygon(seg,facecolor=exampleInt(as

[Matplotlib-users] PS output

2009-01-08 Thread Paul Novak
Hello, I am having some problems with the PS backend. I used the following script to create a PostScript file #!/usr/bin/env python import matplotlib matplotlib.use('PS') import matplotlib.pyplot as plt import numpy x1 = numpy.arange(0,5) y1 = x1 plt.plot(x1, y1) plt.savefig('image.ps') plt.sho

[Matplotlib-users] How do I debug under PythonWin or IDLE?

2009-01-08 Thread debl2
I am sure this is a well know issue, so please feel free to just give a link if the answer and solution are long. I have a newly installed matplotlib installations running on Windows XP using Python 2.5.4. When I execute a simple 4 line example (copied directly from the PyPlot tutorial) in ei

Re: [Matplotlib-users] updating image in wxpython gui...

2009-01-08 Thread Lewis, Ambrose J.
Thanks for the quick reply John...I got it working. To test the data file, I wrote a small script to display it outside of a wxPython GUI. I slightly modified the "image_demo.py" example to read from my data file and convert the data. This example reads in a file of complex values and displays th

Re: [Matplotlib-users] Matplotlib and WPF

2009-01-08 Thread Michael Droettboom
Again, I know little about the current state of Windows-land, but I can explain how the other backends have played out, and I assume the basics are the same. You have basically two choices -- a) write a backend that converts all the matplotlib drawing calls to WPF gc calls or b) write a backend

Re: [Matplotlib-users] Matplotlib and WPF

2009-01-08 Thread V Srikanth
Looks like I am not making much progress. I have no problems using IronPython - this is a C# application running on Vista, so it is platform dependent. I also realized that any Windows Forms control can be used in WPF, so if any one knows how to integrate matplotlib with Windows Forms, please t

Re: [Matplotlib-users] Switching between different font settings

2009-01-08 Thread Johan Ekh
OK, Thanks for your help. // Johan On Wed, Jan 7, 2009 at 7:36 PM, Jouni K. Seppänen wrote: > "Johan Ekh" writes: > > > I am trying to use helvetica and yes, text(r'$1+2+3={}$1+2+3') gives me > > helvetica for the non math mode case. > > But how do I get math mode to use the same font? > > You