Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-01-25 Thread Matthias Michler
Hi Gökhan, On Monday 25 January 2010 20:04:14 Gökhan Sever wrote: > Constrain pan/zoom to x axis hold *x* Constrain pan/zoom to y axis hold *y* > I don't have these in my backend_bases.py file. Are these working on your > system? Yes they do, but only for "pan/zoom"-mode and not for "rect zoom".

[Matplotlib-users] Installation error

2010-01-25 Thread Gary Robinson
Hello, I'm trying to install matplotlib and am getting the error: [lots of OK output] g++ -pthread -shared build/temp.linux-x86_64-2.6/src/_png.o build/temp.linux-x86_64-2.6/src/mplutils.o build/temp.linux-x86_64-2.6/CXX/cxx_extensions.o build/temp.linux-x86_64-2.6/CXX/cxxsupport.o build/temp

Re: [Matplotlib-users] two issues with labels on maps

2010-01-25 Thread Jeff Whitaker
Phillip M. Feldman wrote: > Jeff Whitaker wrote: >> Dr. Phillip M. Feldman wrote: >>> The attached program generates a map and then saves it to a file. I >>> have two >>> problems with the result: >>> >>> (1) Note that the screenshot shows a title above the map, while the >>> .png >>> file that

[Matplotlib-users] LogFormatter and 0.1, 1, and 10

2010-01-25 Thread Thomas Robitaille
Hello, I'm trying to make a log plot using set_xscale and set_yscale. The default LogFormatter however shows 10^-1, 10^0, and 10^1 rather than 0.1, 1, and 10 (other plotting packages I've used usually automatically substitute these three common labels). Is there a way that the LogFormatter coul

Re: [Matplotlib-users] two issues with labels on maps

2010-01-25 Thread Jeff Whitaker
Dr. Phillip M. Feldman wrote: > The attached program generates a map and then saves it to a file. I have two > problems with the result: > > (1) Note that the screenshot shows a title above the map, while the .png > file that was saved by the program does not. > Philip: mapdemo.jpeg (which was

[Matplotlib-users] two issues with labels on maps

2010-01-25 Thread Dr. Phillip M. Feldman
The attached program generates a map and then saves it to a file. I have two problems with the result: (1) Note that the screenshot shows a title above the map, while the .png file that was saved by the program does not. (2) I would like to be able to label the lines of latitude and longitude,

Re: [Matplotlib-users] Interact with matplotlib in Sage

2010-01-25 Thread Jason Grout
Gökhan Sever wrote: > Hello, > > I have thought of this might interesting to share. Register at > www.sagenb.org or try on your local Sage-notebook and using the following > code: > > A related example that lets you get the actual matplotlib figure from a Sage graphic and play with it is here:

Re: [Matplotlib-users] accented characters

2010-01-25 Thread Michael Droettboom
Yes. Unicode strings can be used for text. See this example: http://matplotlib.sourceforge.net/examples/pylab_examples/unicode_demo.html (There are some caveats about using characters outside of the BMP, but that doesn't affect most people.) Mike Filipe Pires Alvarenga Fernandes wrote: > Doe

[Matplotlib-users] accented characters

2010-01-25 Thread Filipe Pires Alvarenga Fernandes
Does matplotlib support accented characters without the TeX mathtext? Thanks. * Filipe Pires Alvarenga Fernandes University of Massachusetts Dartmouth 200 Mill Road - Fairhaven, MA Tel: (508) 910-6381 Email: falvarengafernan...@umassd.edu

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-01-25 Thread Gökhan Sever
Constrain pan/zoom to x axis hold *x* Constrain pan/zoom to y axis hold *y* I don't have these in my backend_bases.py file. Are these working on your system? On Mon, Jan 25, 2010 at 12:58 PM, Gökhan Sever wrote: > Hello, > > I could these keys into rcsetup.py file as well as matplotlibrc.template

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-01-25 Thread Gökhan Sever
Hello, I could these keys into rcsetup.py file as well as matplotlibrc.template and update backend_bases.py accordingly. And add some documentation reflecting the changes made. # Event keys to interact with figures/plots via keyboard fullscreen : 'f' home : 'h' reset : 'r' back : 'c' forward : '

Re: [Matplotlib-users] Adding watermark to canvas background

2010-01-25 Thread Jae-Joon Lee
On Mon, Jan 25, 2010 at 9:14 AM, Dimitri Linten wrote: > What is the best way to do this ? Please explain what you want and what your issue is. Do not expect us (developers or other users) to study your code. If possible, post a small stand-alone example that others can simply run. As far as the

Re: [Matplotlib-users] Adding watermark to canvas background

2010-01-25 Thread Dimitri Linten
Dear John, Thank you for your reply, however am looking for a watermark to be plotted inside the axis, not behind the axis Regards, Dimitri On Mon, Jan 25, 2010 at 3:58 PM, John Hunter wrote: > On Mon, Jan 25, 2010 at 8:14 AM, Dimitri Linten > wrote: > > Hi Forum, > > I am using matplotlib i

Re: [Matplotlib-users] Adding watermark to canvas background

2010-01-25 Thread John Hunter
On Mon, Jan 25, 2010 at 8:14 AM, Dimitri Linten wrote: > Hi Forum, > I am using matplotlib in a PyQt4 App. > I wanted to add a watermark-type  pictures to the standard white background > of the canvas. Does the following help? http://matplotlib.sourceforge.net/search.html?q=codex+watermark

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-01-25 Thread Matthias Michler
Hi Gökhan, I just wanted to discuss the key, because I think this patch should be part of matplotlib and not only of individual users. I think it is worth be be added to the mpl-tracker at http://sourceforge.net/tracker/?group_id=80706 or maybe one of the developers has the time to commit this

[Matplotlib-users] Adding watermark to canvas background

2010-01-25 Thread Dimitri Linten
Hi Forum, I am using matplotlib in a PyQt4 App. I wanted to add a watermark-type pictures to the standard white background of the canvas. My current version of this is : def getwatermark(self): factor=1.0 #factor for scaling image im1=QtGui.QPixmap(':/watermark.png')

Re: [Matplotlib-users] Newb question - multiple colors in bar chart

2010-01-25 Thread Matthias Michler
Hi Jeff, you can do something like the following and specify the color for each bar by providing a list of colors for the keyword argument 'color'. import numpy as np import matplotlib.pyplot as plt # generate some data left = np.arange(6) height = np.random.uniform(size=6) # plot 3 blue and 3