Re: [Matplotlib-users] [matplotlib-devel] Matplotlib style gallery

2016-03-28 Thread Tony Yu
<https://tonysyu.github.io/matplotlib-style-gallery.html#.VvoAzxIrKV4>. Cheers! -Tony On Thu, Jan 8, 2015 at 8:10 PM, Tony Yu wrote: > Thanks Max! > > I was planning to add a more interactive interface, really similar to what > you're suggesting. I haven't gotten around to it, but h

Re: [Matplotlib-users] matplotlib basemap streamlines plot

2015-03-30 Thread Tony Yu
On Mon, Mar 30, 2015 at 2:15 PM, Foehn wrote: > Am 2015-03-27 um 15:01 schrieb Sappy85: > > Hi all, > > > > tried to plot a streamline with matplotlib. So far it work's. > > But my question: Is there a possibility to avoid the gaps in the > streamlines > > (see my picture)? > I think the problem

Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Tony Yu
On Tue, Mar 3, 2015 at 1:37 PM, Marin GILLES wrote: > Le 03/03/2015 18:53, Thomas Caswell a écrit : > > I was thinking of the stand alone repository to just store the style > files as the style module handles the loading pretty well. > > The main motivation for this would be to decouple the rel

Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Tony Yu
On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever wrote: > I see seaborn has "paper, notebook, talk, and poster" options. > http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html > Apperantly he scales each parameter to get modified views. This would be a > good addition for any of the sty

Re: [Matplotlib-users] [matplotlib-devel] Matplotlib style gallery

2015-01-08 Thread Tony Yu
reat if one > could press arrow-down (say) to cycle through the other styles > "dark_background", "fivethirtyeight", etc. for a quick comparison. > > Cheers, > Max > > > 2015-01-06 4:42 GMT+00:00 Tony Yu : > >> I've been playing around with learni

[Matplotlib-users] Matplotlib style gallery

2015-01-05 Thread Tony Yu
I've been playing around with learning Javascript lately. As part of the process, I created a Flask app to build a gallery for matplotlib style sheets: https://github.com/tonysyu/matplotlib-style-gallery If you run that locally, you can actually input styles, either with a URL to a *.mplstyle fil

Re: [Matplotlib-users] streamplots in axesgrid

2013-10-06 Thread Tony Yu
On Thu, Sep 26, 2013 at 10:37 AM, Yoshi Rokuko wrote: > Hey, > > I'm trying to plot streamplots into an axesgrid object with something > like: > > fig = pl.figure(1, (13, 20)) > grid = AxesGrid(fig, 111, > nrows_ncols = (3, 2), > axes_pad = 0.6, > c

[Matplotlib-users] MEP 12: Gallery cleanup example

2013-09-29 Thread Tony Yu
Since the 1.3 release, the Matplotlib gallery has displayed the beginnings of a clean up effort that will probably require the work of many people. To make it easier to contribute to the effort, there's already a MEP (Matplotlib Enhancement Proposal) that details some guidelines for clean up: http

Re: [Matplotlib-users] matplotlib FuncAnimation hanging issue

2013-05-13 Thread Tony Yu
On Mon, May 13, 2013 at 9:14 AM, Tony Yu wrote: > > > > On Sat, May 11, 2013 at 7:08 PM, Colin McAuliffe wrote: > >> To add to the previous email I've tried this with a few different >> backends with no luck. Have similar issues been found when creating video

Re: [Matplotlib-users] matplotlib FuncAnimation hanging issue

2013-05-13 Thread Tony Yu
On Sat, May 11, 2013 at 7:08 PM, Colin McAuliffe wrote: > To add to the previous email I've tried this with a few different backends > with no luck. Have similar issues been found when creating videos with > mencoder? If the final result is the same switching away from ffmpeg is > fine. Sorry fo

Re: [Matplotlib-users] matplotlib FuncAnimation hanging issue

2013-05-06 Thread Tony Yu
On Mon, May 6, 2013 at 7:09 AM, Colin McAuliffe wrote: > Hi Tony, thanks for the reply. > > I was using 1.2.0 and just upgraded to 1.2.1 but the problem persists. I > ran the example code from the link and it hangs after 350-400 frames. Also, > I got an error when running the code as it is posted

Re: [Matplotlib-users] matplotlib FuncAnimation hanging issue

2013-05-05 Thread Tony Yu
On Sun, May 5, 2013 at 7:12 PM, Colin McAuliffe wrote: > Hello all, > > I'm having an issue with FuncAnimation with ffmpeg. For a small number > of frames everything works fine, but for some reason with more than > 600 frames the program hangs indefinitely. Is there some kind of frame > limit for

Re: [Matplotlib-users] Using an array which includes NaNs for color in streamplot

2012-11-16 Thread Tony Yu
On Fri, Nov 16, 2012 at 11:35 AM, Jon Ramsey wrote: > Hi Everyone, > > I have just upgraded to matplotlib 1.2.0 so that I can use the streamplot > module, which I'm quite happy about! > However, I've noticed that when one tries to color the streamlines using a > 2-D array which contains NaNs, str

Re: [Matplotlib-users] Black and white mode

2012-10-02 Thread Tony Yu
On Tue, Oct 2, 2012 at 11:04 AM, Benjamin Root wrote: > > > On Tue, Oct 2, 2012 at 8:31 AM, William Furnass wrote: > >> Did anything ever come of the MPL black and white mode mentioned in >> the following? I rarely want to produce colour plots and having an >> inbuilt mechanism for cycling throu

Re: [Matplotlib-users] Using the lasso tool when file is not main

2012-09-05 Thread Tony Yu
On Wed, Sep 5, 2012 at 7:19 PM, Mark Budde wrote: > Hi, > I'm not an expert so please go easy on me. I am using the pyplot lasso > demo, and have got it to work how I would like. I am having a problem, > however, where I cannot get it to work if my python file is not the > main file (where __name

Re: [Matplotlib-users] New tutorial (beginner level)

2012-08-10 Thread Tony Yu
On Fri, Aug 10, 2012 at 8:23 AM, Nicolas Rougier wrote: > > > Hi all, > > > I've just finished a new introductory tutorial for incoming Euroscipy > 2012. You can find it here: > > http://www.loria.fr/~rougier/teaching/matplotlib/ > > > It is based on Mike Müller tutorial from scipy lecture notes (

Re: [Matplotlib-users] scatter plot individual alpha values

2012-08-08 Thread Tony Yu
On Wed, Aug 8, 2012 at 4:34 PM, Gustavo Goretkin wrote: > I can use the scatter function to plot an array of points and give a > corresponding array of colors to set those points. Is it possible to > do the same thing with alpha values? > > Right now, I'm restoring to calling plot with an 'o' mar

Re: [Matplotlib-users] Modifying lasso_demo.py

2012-07-25 Thread Tony Yu
On Wed, Jul 25, 2012 at 5:11 PM, Scott Henderson wrote: > Hello, I'm trying to incorporate some matplotlib widgets into my scripts > that generate plots. I'm unsure why, but if I wrap the figure creation > lines in lasso_demo.py with a function the demo does not work. Why? > > #Original: > #-

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-16 Thread Tony Yu
On Mon, Jul 16, 2012 at 6:06 PM, Tony Yu wrote: > > > On Mon, Jul 16, 2012 at 3:07 PM, John Hunter wrote: > >> >> >> On Tue, Jul 10, 2012 at 11:58 AM, Tony Yu wrote: >> >>> Announcement: mpltools 0.1 >>> == >>

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-16 Thread Tony Yu
On Mon, Jul 16, 2012 at 3:07 PM, John Hunter wrote: > > > On Tue, Jul 10, 2012 at 11:58 AM, Tony Yu wrote: > >> Announcement: mpltools 0.1 >> == >> >> mpltools is a package of tools for matplotlib. For the most part, these &g

Re: [Matplotlib-users] wxpython matplotlib figure resize

2012-07-12 Thread Tony Yu
On Thu, Jul 12, 2012 at 9:27 PM, Keith Jones wrote: > Hi, > > I am interested in a better solution to this problem, but I have used this > simple method to force the right size. > > > > def tickle(self): > > #gets frame to redraw and resize, not elegant. > > if self.IsMaximiz

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-12 Thread Tony Yu
On Thu, Jul 12, 2012 at 9:28 AM, Damon McDougall wrote: > On Wed, Jul 11, 2012 at 08:33:21PM -0400, Tony Yu wrote: > > On Wed, Jul 11, 2012 at 2:28 PM, Benjamin Root wrote: > > > > > > > > > > > On Wed, Jul 11, 2012 at 11:23 AM, John Hunter > wro

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-11 Thread Tony Yu
On Wed, Jul 11, 2012 at 2:28 PM, Benjamin Root wrote: > > > On Wed, Jul 11, 2012 at 11:23 AM, John Hunter wrote: > >> >> >> On Wed, Jul 11, 2012 at 10:09 AM, Damon McDougall < >> damon.mcdoug...@gmail.com> wrote: >>> >>> Well, as Ben said, that error fill plot is neato! It doesn't look too >>> c

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-11 Thread Tony Yu
On Wed, Jul 11, 2012 at 11:27 AM, Benjamin Root wrote: > > > On Wed, Jul 11, 2012 at 11:23 AM, John Hunter wrote: > >> >> >> On Wed, Jul 11, 2012 at 10:09 AM, Damon McDougall < >> damon.mcdoug...@gmail.com> wrote: >>> >>> Well, as Ben said, that error fill plot is neato! It doesn't look too >>>

Re: [Matplotlib-users] Interactive selecting a quadrilateral from a axes

2012-07-11 Thread Tony Yu
On Wed, Jul 11, 2012 at 8:35 AM, Wolfgang Draxinger < wdraxinger.maill...@draxit.de> wrote: > Hi, > > I have a plot of an image of which I'd like to interactively select a > quadrilateral. This is for a homography operation (perspective > correction). It suffices if the quadrilateral can be dragge

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-10 Thread Tony Yu
On Tue, Jul 10, 2012 at 1:52 PM, John Hunter wrote: > > On Tue, Jul 10, 2012 at 12:49 PM, Damon McDougall < > damon.mcdoug...@gmail.com> wrote: > >> >> Would there be any interest in porting some of that functionality into >> the main mpl codebase? Like Ben said, that error function is nifty... :

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-10 Thread Tony Yu
On Tue, Jul 10, 2012 at 1:10 PM, Benjamin Root wrote: > > > On Tue, Jul 10, 2012 at 12:58 PM, Tony Yu wrote: > >> Announcement: mpltools 0.1 >> == >> >> mpltools is a package of tools for matplotlib. For the most part, these &g

[Matplotlib-users] ANN: mpltools 0.1 release

2012-07-10 Thread Tony Yu
Announcement: mpltools 0.1 == mpltools is a package of tools for matplotlib. For the most part, these tools are only loosely-connected in functionality, but there are two that may prove particularly useful: Styles and plot2rst --- The `style` package provi

Re: [Matplotlib-users] Increasing font size in axis ticks

2012-07-05 Thread Tony Yu
On Thu, Jul 5, 2012 at 8:12 AM, David Kremer wrote: > Hello, > > I know how one can increase the font size in the xlabel and ylabel > fields. I use the methode presented in: > > > http://matplotlib.sourceforge.net/examples/pylab_examples/dannys_example.html > > But I don't know how to increase the

Re: [Matplotlib-users] Event handling... again

2012-07-04 Thread Tony Yu
On Wed, Jul 4, 2012 at 11:11 PM, Jorge Scandaliaris wrote: > > De: Tony Yu > > > > > >Just a wild guess: Any chance you're using some GUI-toolkit-specific > functionality? > > > > > > > Can you elaborate please? I use the GTKAgg backend, a

Re: [Matplotlib-users] Event handling... again

2012-07-04 Thread Tony Yu
On Wed, Jul 4, 2012 at 10:14 PM, Jorge Scandaliaris wrote: > Hi, > Are there any caveats when using events together with IPython that you > are aware of? I have some code that I use to interactively explore > images that works OK when run from a Python interpreter but does not > (see note) when ru

Re: [Matplotlib-users] tornado chart

2012-06-21 Thread Tony Yu
On Thu, Jun 21, 2012 at 6:42 PM, Alan G Isaac wrote: > I never thought it would happen, but the > Matplotlib Gallery has for once failed me: > http://matplotlib.sourceforge.net/gallery.html > > I was looking for an example of creating a nice > tornado chart: > > http://code.enthought.com/projects

Re: [Matplotlib-users] legend label for fill_between (or similar)

2012-06-21 Thread Tony Yu
On Thu, Jun 21, 2012 at 4:09 PM, Andre' Walker-Loud wrote: > Hi All, > > Sometimes, instead of using data points with error bars, I instead use > fill_between to create a little bar, with a band which I use alpha=.3 or so. > > I have tried unsuccessfully to find an easy way to create a legend labe

Re: [Matplotlib-users] y-axis misbehavior

2012-06-07 Thread Tony Yu
On Thu, Jun 7, 2012 at 3:44 PM, Mark Gurling wrote: > I am on Ubuntu 11.10 > matplotlib version 1.1.0 > numpy version 1.5.1 > > I have two bar graph scripts (good.py and bad.py). Each generates a graph > that contains two bars: one bar that extends along the positive y-axis and > another bar that

Re: [Matplotlib-users] ymax

2012-06-07 Thread Tony Yu
On Thu, Jun 7, 2012 at 12:14 PM, kamel maths wrote: > Thanks for your answers. > > It is not very clear for me yet. This a script I tested. > -- > from pylab import * > > fig = figure() > ax = fig.add_subplot(111) > ax.axis('equal') > > x = linspace(-2,

Re: [Matplotlib-users] ymax

2012-06-06 Thread Tony Yu
On Wed, Jun 6, 2012 at 3:32 PM, kamel maths wrote: > Hi, > > for this script: > > from pylab import * > > fig = figure() > ax = fig.add_subplot(111) > ax.axis('equal') > > x = linspace(-2, 3, 50) > ax.plot(x, sin(x)) > > show() > --

Re: [Matplotlib-users] easy question on ytick label format

2012-06-01 Thread Tony Yu
> > >> On 06/01/2012 02:58 PM, Mark Bakker wrote: >> >> Hello List, >> >> I want to plot plot([1000,2000]) >> Then on the y-axis, I want labels 1 and 2, and at the top of the y-axis I >> want E3. >> This works automatically with plot([1e7,2e7]). >> But I assume that is something that can be set for

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Tony Yu
On Thu, May 31, 2012 at 10:03 AM, Mark Bakker wrote: > OK. Got it. That is not what I was looking for. > > But, why the leading $ sign? Just as an example? The $ sign shows up in > the cursor coordinate now. Is that what was supposed to happen (it is > confusing with the $ sign also being used fo

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Tony Yu
On Thu, May 31, 2012 at 9:31 AM, Mark Bakker wrote: > I looked at the example of overriding the default reporting of coords, > which is here: > > http://matplotlib.sourceforge.net/examples/pylab_examples/coords_report.html > > from pylab import * > > def millions(x): > return '$%1.1fM' % (x*1e-6)

Re: [Matplotlib-users] how does imshow() represent numpy array with origin = "lower" keyword ?

2012-05-30 Thread Tony Yu
On Tue, May 29, 2012 at 5:31 AM, Yasin Selçuk Berber wrote: > > Hi. I want to make sure how imshow shows a numpy array as image. > > lets say below is our numpy data array where letter represent data values > and numbers represent row/col indices. > > 0 1 2 > 0 a b c > 1 d e f > 2 g h i > > and

Re: [Matplotlib-users] Dark or inverted color scheme

2012-05-25 Thread Tony Yu
On Friday, May 25, 2012, Jerzy Karczmarczuk wrote: > Tony Yu: > > # rc definitions for dark backgrounds > > lines.color: white > patch.edgecolor: white > > ... > > don't forget to lighten the colours in axes.color_cycle (unless blue on > black, etc. suits

Re: [Matplotlib-users] Dark or inverted color scheme

2012-05-25 Thread Tony Yu
On Fri, May 25, 2012 at 4:07 PM, Tom Aldcroft wrote: > Is there a simple way to essentially invert the default plotting color > scheme so that the figure background is black and all text, ticks, > axes, axis labels, etc are white? I think what I want is to redefine > the RGB definitions of the s

Re: [Matplotlib-users] Easy mistake to make...

2012-05-24 Thread Tony Yu
On Thu, May 24, 2012 at 9:54 AM, Benjamin Root wrote: > Just got bit by this and I thought I'd share to help others. > > I was just quickly writing out some pyplot commands to create two subplots > to compare some results. I did: > > plt.subplots(1, 2, 1) > plt.contourf() > plt.title("Contou

Re: [Matplotlib-users] Slow imshow when zooming or panning with several synced subplots

2012-05-24 Thread Tony Yu
On Thu, May 24, 2012 at 9:14 AM, Sergi Pons Freixes wrote: > On Wed, May 23, 2012 at 6:27 PM, Tony Yu wrote: > > > > I'm not sure what you mean by "normalize the values to an appropriate > number > > of bits", but I don't think setting `vmin` or `vmax

Re: [Matplotlib-users] Turning of ticks in matplotlibrc

2012-05-23 Thread Tony Yu
On Mon, May 21, 2012 at 4:01 PM, Andreas Mueller wrote: > ** > Hi everybody. > I have been trying to turn off xticks and yticks and their labels in > matplotlibrc. > Tickshave > an argument "tick1On" and "label1On" but it s

Re: [Matplotlib-users] Slow imshow when zooming or panning with several synced subplots

2012-05-23 Thread Tony Yu
On Wed, May 23, 2012 at 9:04 AM, Sergi Pons Freixes wrote: > On Wed, May 23, 2012 at 11:00 AM, Guillaume Gay > wrote: > > Hello > > > > > > What is the size of a single image file? If they are very big, it is > > better to do everything from processing to ploting at once for each file. > > As sta

Re: [Matplotlib-users] modify default figure dpi when saving figure interactivley

2012-05-21 Thread Tony Yu
On Mon, May 21, 2012 at 3:45 AM, Chao YUE wrote: > Dear all, > > I have a question on how to change default figure dpi when try to save > figure in interactive mode. > I try to use mat.rcParams['figure.dpi']=300 before I plot, then the > problem is that the figure which is drawn is too big for in

Re: [Matplotlib-users] tight_layout() causes RuntimeError on OSX

2012-05-01 Thread Tony Yu
On Tue, May 1, 2012 at 3:04 PM, Elliot Saba wrote: > Hey guys, I'm trying to use tight_layout() to fix up some subplot > grossness, but whenever I call it, I get: > > Traceback (most recent call last): > File "test.py", line 16, in > plt.tight_layout() > File > "/Users//.homebrew/Cellar/

Re: [Matplotlib-users] Set x axis length of all subplots to same width on screen

2012-04-26 Thread Tony Yu
On Thu, Apr 26, 2012 at 12:51 PM, willfurnass wrote: > > I've converted a simple MATLAB script [1] for wavelet decomposition-based > analysis to Python. I now want to create figures similar to [2] that > feature five subplots in one column, with the 1st and 3rd being generated > using 'subplot.p

Re: [Matplotlib-users] [Bug] : yaxis presentation going wrong if ymin/ymax < .000x (x~ 5)

2012-04-23 Thread Tony Yu
On Mon, Apr 23, 2012 at 5:09 AM, jul tayon wrote: > Hello list > > matplotlib website says this mailing is the prefered way to report > bug, so here I am : > > System : > python ; 2.7.2+ > matplotlib 1.1.0 > ubuntu TLS amd64 > matplotlib Backend : TkAgg > > > How to reproduce (on my pf) > Code S

Re: [Matplotlib-users] Copying a figure instance?

2012-03-31 Thread Tony Yu
On Fri, Mar 30, 2012 at 12:25 PM, eoj wrote: > > Basically the problem is like this. I have a relatively expensive (time > wise) > figure to create, specifically a map with lots of detail in it. On top of > that, I'm making an inset set of axes to highlight some regions. I'm > having > to recrea

Re: [Matplotlib-users] padding axis limits automatically?

2012-03-30 Thread Tony Yu
On Fri, Mar 30, 2012 at 4:40 PM, Eric Firing wrote: > On 03/30/2012 08:47 AM, Skipper Seabold wrote: > > There is probably a simple answer to this, but I don't see it. How can > > I pad the axis limits automatically? For instance, in the below > > example, the x axis limits are the data points an

Re: [Matplotlib-users] padding axis limits automatically?

2012-03-30 Thread Tony Yu
On Fri, Mar 30, 2012 at 2:47 PM, Skipper Seabold wrote: > There is probably a simple answer to this, but I don't see it. How can > I pad the axis limits automatically? For instance, in the below > example, the x axis limits are the data points and the y limit is > close. I want to have a function

Re: [Matplotlib-users] reverse colormap?

2012-03-29 Thread Tony Yu
On Thu, Mar 29, 2012 at 1:31 PM, Chao YUE wrote: > Dear all, > > here in cookbook it says "Ever wanted to reverse a colormap, or to > desaturate one ? Here is a routine to apply a function to the look up table > of a colormap: " > http://www.scipy.org/Cookbook/Matplotlib/ColormapTransformations >

Re: [Matplotlib-users] Scatter plot with a specific size per point

2012-03-26 Thread Tony Yu
On Mon, Mar 26, 2012 at 8:26 AM, Matthieu Brucher < matthieu.bruc...@gmail.com> wrote: > Indeed, a little bit less simple, but the solution nonetheless. > > Thank you! > > > 2012/3/26 Zachary Pincus > >> > I'd like to display a scatter plot where the size for each element is >> fixed. Currently,

Re: [Matplotlib-users] why does transform=None cause a patch not to be shown?

2012-03-25 Thread Tony Yu
On Thu, Mar 22, 2012 at 1:43 AM, C M wrote: > For the following code, if I remove the transform=None a green patch is > shown. If it is in, it is not shown. I would think that transform=None > should have no effect. Why is this? > This is a weird one: When you set the transform, the artist no

Re: [Matplotlib-users] sample to contribute to mpl gallery

2012-03-20 Thread Tony Yu
On Tue, Mar 20, 2012 at 4:10 PM, Daniel Hyams wrote: > There was a request a while back to create plots that are more > application-oriented for the matplotlib gallery, so I'd like to submit this > one for inclusion. I tried to spruce it up a bit to show what MPL can do, > and I'm sure that the

Re: [Matplotlib-users] Why are bars, errorbars... clipped

2012-03-18 Thread Tony Yu
On Sun, Mar 18, 2012 at 11:08 AM, Benjamin Root wrote: > > > On Sunday, March 18, 2012, Tony Yu wrote: > > > > > > On Sun, Mar 18, 2012 at 9:14 AM, klo uo wrote: > >> > >> On Sun, Mar 18, 2012 at 1:50 PM, Angus McMorland > wrote: > >

Re: [Matplotlib-users] Why are bars, errorbars... clipped

2012-03-18 Thread Tony Yu
On Sun, Mar 18, 2012 at 9:14 AM, klo uo wrote: > On Sun, Mar 18, 2012 at 1:50 PM, Angus McMorland wrote: > >> >> For inline ipython, you want to switch to the object-oriented use of >> pylab. Something like this should work with xlim. >> >> a = [0.1, 0.2, 0.1] >> fig = plt.figure() >> ax = fig.ad

Re: [Matplotlib-users] How to remove the black border in a Matplotlib figure

2012-03-15 Thread Tony Yu
On Thu, Mar 15, 2012 at 6:01 AM, kususe wrote: > > Hi folks, > I'd like to remove the black border which is created when I save the image, > letting just the white background and the graph. > Is there a solution?? > Thanks, > K. > -- Matplotlib provides a function that *almost* does this: `plt.

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-14 Thread Tony Yu
style#Placement_of_replies>. It's a bit easier to follow the conversation that way. -Tony > > Tony Yu-3 wrote: > > > > On Wed, Mar 14, 2012 at 1:41 PM, kususe wrote: > > > >> > >> Thanks, it works. > >> But

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-14 Thread Tony Yu
> how can I work the problem out? > I would do the following (`subplots` requires mpl 1.0, I think): fig, axes = plt.subplots(ncols=3) ax1, ax2, ax3 = axes ax1.plot(x, y1) ... ax2.plot(x, y2) ... ax3.plot(x, y3) ... for ax in axes:\ ax.set_xticks([]) ... Cheers, -Tony Thanks in a

Re: [Matplotlib-users] matplotlib website problems?

2012-03-14 Thread Tony Yu
On Wed, Mar 14, 2012 at 9:58 AM, Jonathan Slavin wrote: > Hi, > > Recently on several occasions I have gotten the response "Too many > requests, please try again later." when trying to go to a matplotlib > webpage. Have others experienced this also? Is this a problem with > sourceforge? I'm won

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-14 Thread Tony Yu
On Wed, Mar 14, 2012 at 5:44 AM, kususe wrote: > > Hi folks, > I have a graph got using the subplot command. > I'd like to remove all ticks in X axis in all of graph. > > I used: plt.setp(plt.gca(),'XtickLabel',[]) > > but I get that: > > File "/usr/lib/pymodules/python2.6/matplotlib/artist.py",

Re: [Matplotlib-users] How to draw an arrow

2012-03-14 Thread Tony Yu
On Wed, Mar 14, 2012 at 6:02 AM, kususe wrote: > > Hi folks, > I've to draw an arrow. > I used Arrow() function: > > pa.Arrow(0, 0, x, y, width=1.0) > > where I imported > > matplotlib.patches as pa > > Now, how to use plot() function di display the figure? > > Tanks in advance, > K. > -- > View

Re: [Matplotlib-users] Arrow with a dashed line

2012-03-12 Thread Tony Yu
On Sun, Mar 11, 2012 at 2:13 PM, Tony Yu wrote: > Is it possible to draw an arrow with a dashed line? > > I tried using a fancy arrow patch and set the linestyle: > > #~~~ > import matplotlib.pyplot as plt > > fix, ax = plt.subplots() > ax.set_xlim((-1,5)) > ax.se

[Matplotlib-users] Arrow with a dashed line

2012-03-11 Thread Tony Yu
Is it possible to draw an arrow with a dashed line? I tried using a fancy arrow patch and set the linestyle: #~~~ import matplotlib.pyplot as plt fix, ax = plt.subplots() ax.set_xlim((-1,5)) ax.set_ylim((-5,3)) ax.annotate('simple', xy=(2., -1), xycoords='data', xytext=(100, 60), t

Re: [Matplotlib-users] draw_event

2012-02-28 Thread Tony Yu
On Tue, Feb 28, 2012 at 4:05 PM, Antoine Sirinelli wrote: > Hi, > > I have been using the event "draw_event" for a while with the old > matplotlib 0.8. I have tested my program with newer versions but it seems > the function connected to "draw_event" is never called. > > You can find an example o

Re: [Matplotlib-users] Fwd: Matplotlib gallery

2012-02-23 Thread Tony Yu
On Thu, Feb 23, 2012 at 11:32 AM, wrote: > I will never get use to reply-all > > -- Forwarded message -- > From: > Date: Thu, Feb 23, 2012 at 11:31 AM > Subject: Re: [Matplotlib-users] Matplotlib gallery > To: Nicolas Rougier > > > On Thu, Feb 23, 2012 at 11:24 AM, Nicolas Roug

Re: [Matplotlib-users] plot as individual "colorbars"

2012-02-18 Thread Tony Yu
On Tue, Feb 14, 2012 at 12:49 PM, Olе Streicher wrote: > Jerzy Karczmarczuk > writes: > > Could you provide a /working/ example with the geometry you really want? > > I believe I thought more or less about it as Tony Yu did. If it is > > wrong, be more precise, please. &g

Re: [Matplotlib-users] Selecting a color from a given color map.

2012-02-16 Thread Tony Yu
On Thu, Feb 16, 2012 at 4:14 PM, Daniel Welling wrote: > Greetings. > > I have a series of lines that I would like to plot on the same axis, > but I would like to set the color of each such that the range of > colors used progresses through a given color map (e.g. the default Jet > map.) For exam

Re: [Matplotlib-users] plot as individual "colorbars"

2012-02-14 Thread Tony Yu
On Tue, Feb 14, 2012 at 10:33 AM, Olе Streicher wrote: > Tony Yu writes: > > Does the following do what you need? > > > > # > > import numpy as np > > import matplotlib.pyplot as plt > > > > width = 0.5 > > height = 10 > > > > fo

Re: [Matplotlib-users] plot as individual "colorbars"

2012-02-14 Thread Tony Yu
On Tue, Feb 14, 2012 at 9:48 AM, Olе Streicher wrote: > Hi list, > > I have a list of 48 individual data sets (lambda,y) which I want to plot in > the following diagram: > > lambda > ^ > | > | > | > | > +---> > 1 2 3 4 5 6 .. Dataset # > > The "y" values should be color coded here, in

Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread Tony Yu
ut -b mdboom-pixel_marker Then continue as John instructed. -Tony > > On Wed, Feb 8, 2012 at 10:13 AM, John Hunter wrote: > > > > > > On Wed, Feb 8, 2012 at 12:06 PM, Tony Yu wrote: > > > >>> git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git

Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread Tony Yu
On Wed, Feb 8, 2012 at 12:58 PM, Chris wrote: > This time the error is: > > fatal: Not a git repository (or any of the parent directories): .git > > I guess that I have not be able to establish a local git tree since the > command > > git clone g...@github.com:matplotlib/matplotlib.git matplotlib

Re: [Matplotlib-users] How to make a colored bar chart with named items and values shown above each bar?

2012-02-07 Thread Tony Yu
On Tue, Feb 7, 2012 at 1:01 PM, Martin Mokrejs wrote: > Hi, > I would like to create a bar chart like the attached example but with the > addition > that each bar would have a different color. I tried to learn this from the > examples > on matplotlib web but still do not see a close example for t

Re: [Matplotlib-users] subplot and image

2012-01-31 Thread Tony Yu
On Tue, Jan 31, 2012 at 12:56 PM, Petro Khoroshyy wrote: > Hi all > I try to use matplotlib ti anotate some pictures. > I wanted to combine two pictures into one using subplot. But apparently > subplot does not work with images. How can I do it? > Thanks > > P.S. Here is the source: > import pylab

Re: [Matplotlib-users] Subplot x-tick labels overlap with each other and with titles

2012-01-30 Thread Tony Yu
On Sun, Jan 29, 2012 at 10:10 PM, C M wrote: > > > On Wed, Jan 4, 2012 at 2:19 PM, Benjamin Root wrote: > >> >> >> On Wednesday, January 4, 2012, jeffsp wrote: >> > >> > plt.tight_layout(), sweet >> > >> > it still makes the labels too close to read, even if they don't overlap. >> > that is, th

Re: [Matplotlib-users] (no subject)

2012-01-29 Thread Tony Yu
On Sun, Jan 29, 2012 at 2:21 AM, Paul Hobson wrote: > There is undoubtedly a more efficient way to do this, but give this a shot: > > import numpy as np > import matplotlib.pyplot as plt > > x = np.arange(0, 10.5, 0.5) > y = -3.0*x + 0.5*x**2 > > color_list = ['FireBrick', 'Orange', 'DarkGreen',

Re: [Matplotlib-users] histogram plots color range

2012-01-27 Thread Tony Yu
On Fri, Jan 27, 2012 at 4:01 PM, wrote: > On Fri, Jan 27, 2012 at 12:18 PM, Tony Yu wrote: > > > > > > On Fri, Jan 27, 2012 at 11:27 AM, nahren manuel > > wrote: > >> > >> Hello , > >> I have a two dimensional array, 40X20(rowsXcolumns).

Re: [Matplotlib-users] histogram plots color range

2012-01-27 Thread Tony Yu
On Fri, Jan 27, 2012 at 11:27 AM, nahren manuel wrote: > Hello , > I have a two dimensional array, 40X20(rowsXcolumns). Each of the 40 rows > themselves hold values of the bins of a distribution (which is not always > normal, can expect a bimodal curve as well) > It is little difficult to explain

Re: [Matplotlib-users] Events

2012-01-27 Thread Tony Yu
On Fri, Jan 27, 2012 at 5:54 AM, Jerzy Karczmarczuk < jerzy.karczmarc...@unicaen.fr> wrote: > Benjamin Root answers my query concerning user-generated events : > > To answer your question, take a look at how pick_event() is declared > > in backend_bases.py: > > > > def pick_event(self, mouseev

Re: [Matplotlib-users] Overlaying part of an matrix image on another.

2012-01-27 Thread Tony Yu
On Fri, Jan 27, 2012 at 9:13 AM, Pål Gunnar Ellingsen wrote: > Hi > > I have a array, M, which is (4Nx4M), and an array (image), im, which is > NxM. > I can currently plot the matrix as a 2d image using imshow using: > > import matplotlib.pyplot as plt > from matplotlib import cm > > # some code f

Re: [Matplotlib-users] Using Proxy Artist to make legend

2012-01-26 Thread Tony Yu
On Thu, Jan 26, 2012 at 8:20 AM, Sabine van der Linden wrote: > Hello, > > I have made a plot with a fill_between part, which does not show up in the > legend. I have read that I have to use a proxy artist for this, but I have > no > clue where to place this, and how.. The fill between works fine,

Re: [Matplotlib-users] colorbar.py bug in matplotlib 1.1.0?

2012-01-25 Thread Tony Yu
On Wed, Jan 25, 2012 at 2:42 PM, Josh Hemann wrote: > I have some code that has worked in matplotlib versions 0.99 and 1.0.1. > Recently, I updated to 1.1.0 and my code broke, specifically in a call to > colorbar(). I tried running this gallery > example

Re: [Matplotlib-users] Problem with cachedRenderer

2012-01-25 Thread Tony Yu
the developer list since the consistency of backends seems like a relevant issue. -Tony P.S. Andi: Be sure to "reply all" since the mailing list doesn't automatically do this for some reason. > > On 25/01/12 00:26, Tony Yu wrote: > > > > On Tue, Jan 24, 2012

Re: [Matplotlib-users] beginner examples using matplotlib.transforms?

2012-01-23 Thread Tony Yu
On Mon, Jan 23, 2012 at 2:43 PM, reckoner wrote: > Hi, > > I am trying to create a sequence of rotated rectangles of various > sizes/orientations. I have been looking at the following page: > > http://matplotlib.sourceforge.net/devel/transformations.html > > But I can't find any examples of how

Re: [Matplotlib-users] How to create a movie?? (from matlab code)

2012-01-23 Thread Tony Yu
2012/1/23 Gousios George > ** > Στις 23/01/2012 08:10 μμ, ο/η Benjamin Root έγραψε: > > 2012/1/23 Gousios George > >> Στις 23/01/2012 07:48 μμ, ο/η Tony Yu έγραψε: >> >> >> >> 2012/1/23 Gousios George >> >>> Στις 23/01/2012 06:

Re: [Matplotlib-users] How to create a movie?? (from matlab code)

2012-01-23 Thread Tony Yu
2012/1/23 Gousios George > ** > Στις 23/01/2012 06:52 μμ, ο/η Tony Yu έγραψε: > > > > 2012/1/23 Gousios George > >> Στις 21/01/2012 07:43 μμ, ο/η Gousios George έγραψε: >> >> Στις 21/01/2012 07:05 μμ, ο/η Tony Yu έγραψε: >> >> >> >

Re: [Matplotlib-users] How to create a movie?? (from matlab code)

2012-01-23 Thread Tony Yu
2012/1/23 Gousios George > ** > Στις 21/01/2012 07:43 μμ, ο/η Gousios George έγραψε: > > Στις 21/01/2012 07:05 μμ, ο/η Tony Yu έγραψε: > > > > On Sat, Jan 21, 2012 at 11:31 AM, Gousios George wrote: > >> Στις 21/01/2012 04:54 μμ, ο/η Tony Yu έγραψε: >> &

Re: [Matplotlib-users] Path lacks initial MOVETO

2012-01-23 Thread Tony Yu
y system. -Tony > > On 01/23/2012 09:02 AM, Bruno Santos wrote: > > Sorry it took me a while to get back to you. I have finally written some > code to replicate the problem. I have attached a file with it. > > Thank you very much in advance, > Bruno Santos > > 2012/1

Re: [Matplotlib-users] How to create a movie?? (from matlab code)

2012-01-21 Thread Tony Yu
On Sat, Jan 21, 2012 at 11:31 AM, Gousios George wrote: > ** > Στις 21/01/2012 04:54 μμ, ο/η Tony Yu έγραψε: > > > > On Sat, Jan 21, 2012 at 9:07 AM, Gousios George wrote: > >> Hello , i have the following code in matlab and trying to do it in >> matplotlib. >&

Re: [Matplotlib-users] How to create a movie?? (from matlab code)

2012-01-21 Thread Tony Yu
On Sat, Jan 21, 2012 at 9:07 AM, Gousios George wrote: > Hello , i have the following code in matlab and trying to do it in > matplotlib. > > I have this code in matlab (in a function showGraphs): > ... > m = size(myList, 3); > for k = 1:m > g = myList(:, :, k); > image(g + 1) > axis o

Re: [Matplotlib-users] Path lacks initial MOVETO

2012-01-19 Thread Tony Yu
On Thu, Jan 19, 2012 at 12:07 PM, Bruno Santos wrote: > Hello everyone, > > I have been using matplotlib 0.99.3 to write some down. But I had to > upgrade my OS and so installed the last version of the library 1.1.0. But > unfortunately when I try to run my code I get the following error: >

Re: [Matplotlib-users] Grid problem?

2012-01-19 Thread Tony Yu
On Thu, Jan 19, 2012 at 12:44 AM, Paul Ivanov wrote: > Hi David, > > David Perlman, on 2012-01-06 16:57, wrote: > > Am I doing this wrong? I am doing the best I can to follow the > > documentation exactly. > > It doesn't look like you're doing it wrong - and your example > works for me, though

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Tony Yu
On Thu, Jan 12, 2012 at 12:14 PM, Benjamin Root wrote: > > > On Thu, Jan 12, 2012 at 11:04 AM, Tony Yu wrote: > >> >> >> On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus wrote: >> >>> >>> On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote:

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Tony Yu
On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus wrote: > > On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: > > Does everything work correctly if it is vertical? In other words, use > bar() and set the y-axis to log scale? An example script would be useful. > > No, it doesn't appear to work

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Tony Yu
On Thu, Jan 5, 2012 at 11:51 AM, Benjamin Root wrote: > > > On Thu, Jan 5, 2012 at 7:56 AM, Jonathan Slavin > wrote: > >> Just one quick thought. I hope that you will implement a longer default >> color cycle than the current default. I have several times run into >> situations where I have to

Re: [Matplotlib-users] Subplot x-tick labels overlap with each other and with titles

2012-01-04 Thread Tony Yu
On Wed, Jan 4, 2012 at 1:14 PM, jeffsp wrote: > > I have been wondering the same thing. Matlab is able to prevent labels > from > overlapping each other. Why can't matplotlib? > > > Chris Rodgers-7 wrote: > > > > Hi > > > > Whenever I create figures with at least 3x3 subplots, the x-tick > > la

Re: [Matplotlib-users] Fixed width - axis equal *and* tight

2012-01-03 Thread Tony Yu
On Tue, Jan 3, 2012 at 11:57 AM, Mario Fuest wrote: > Hi, > > Maybe a bad idea to ask a question on x-mas. Well, I hope it’s not that > unpolite to push one‘s questions. :) > > Basically I just want to set a fixed width/height on my figure. That > should be possible? > > Mario Fuest schrieb am S

  1   2   >