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 <tsy...@gmail.com> wrote: > Thanks Max! > > I was planning to add a more interactive interface, really similar to what > you're suggesting. I haven't gotten around t

Re: [Matplotlib-users] matplotlib basemap streamlines plot

2015-03-30 Thread Tony Yu
On Mon, Mar 30, 2015 at 2:15 PM, Foehn fo...@posteo.org 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

Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Tony Yu
On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever gokhanse...@gmail.com 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

Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Tony Yu
On Tue, Mar 3, 2015 at 1:37 PM, Marin GILLES mrngil...@gmail.com 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

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

2015-01-08 Thread Tony Yu
styles dark_background, fivethirtyeight, etc. for a quick comparison. Cheers, Max 2015-01-06 4:42 GMT+00:00 Tony Yu tsy...@gmail.com: 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

[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

Re: [Matplotlib-users] streamplots in axesgrid

2013-10-06 Thread Tony Yu
On Thu, Sep 26, 2013 at 10:37 AM, Yoshi Rokuko yo...@rokuko.net 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,

[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:

Re: [Matplotlib-users] matplotlib FuncAnimation hanging issue

2013-05-13 Thread Tony Yu
On Sat, May 11, 2013 at 7:08 PM, Colin McAuliffe cjm2...@columbia.eduwrote: 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

Re: [Matplotlib-users] matplotlib FuncAnimation hanging issue

2013-05-13 Thread Tony Yu
On Mon, May 13, 2013 at 9:14 AM, Tony Yu tsy...@gmail.com wrote: On Sat, May 11, 2013 at 7:08 PM, Colin McAuliffe cjm2...@columbia.eduwrote: 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

Re: [Matplotlib-users] matplotlib FuncAnimation hanging issue

2013-05-06 Thread Tony Yu
On Mon, May 6, 2013 at 7:09 AM, Colin McAuliffe cjm2...@columbia.eduwrote: 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

Re: [Matplotlib-users] matplotlib FuncAnimation hanging issue

2013-05-05 Thread Tony Yu
On Sun, May 5, 2013 at 7:12 PM, Colin McAuliffe cjm2...@columbia.eduwrote: 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

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 jon.p.ram...@gmail.com 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

Re: [Matplotlib-users] Black and white mode

2012-10-02 Thread Tony Yu
On Tue, Oct 2, 2012 at 11:04 AM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Oct 2, 2012 at 8:31 AM, William Furnass w...@thearete.co.ukwrote: 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

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 markbu...@gmail.com 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

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

2012-08-10 Thread Tony Yu
On Fri, Aug 10, 2012 at 8:23 AM, Nicolas Rougier nicolas.roug...@inria.frwrote: 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

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 gustavo.goret...@gmail.com 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

Re: [Matplotlib-users] Modifying lasso_demo.py

2012-07-25 Thread Tony Yu
On Wed, Jul 25, 2012 at 5:11 PM, Scott Henderson st...@cornell.edu 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?

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 jdh2...@gmail.com wrote: On Tue, Jul 10, 2012 at 11:58 AM, Tony Yu tsy...@gmail.com wrote: Announcement: mpltools 0.1 == mpltools is a package of tools for matplotlib. For the most part, these tools are only loosely

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 tsy...@gmail.com wrote: On Mon, Jul 16, 2012 at 3:07 PM, John Hunter jdh2...@gmail.com wrote: On Tue, Jul 10, 2012 at 11:58 AM, Tony Yu tsy...@gmail.com wrote: Announcement: mpltools 0.1 == mpltools is a package of tools

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 damon.mcdoug...@gmail.comwrote: On Wed, Jul 11, 2012 at 08:33:21PM -0400, Tony Yu wrote: On Wed, Jul 11, 2012 at 2:28 PM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Jul 11, 2012 at 11:23 AM, John Hunter jdh2...@gmail.com wrote

Re: [Matplotlib-users] wxpython matplotlib figure resize

2012-07-12 Thread Tony Yu
On Thu, Jul 12, 2012 at 9:27 PM, Keith Jones k.jo...@irl.cri.nz 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

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 dragged by

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 ben.r...@ou.edu wrote: On Wed, Jul 11, 2012 at 11:23 AM, John Hunter jdh2...@gmail.com 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

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 ben.r...@ou.edu wrote: On Wed, Jul 11, 2012 at 11:23 AM, John Hunter jdh2...@gmail.com 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

[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

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 ben.r...@ou.edu wrote: On Tue, Jul 10, 2012 at 12:58 PM, Tony Yu tsy...@gmail.com wrote: Announcement: mpltools 0.1 == mpltools is a package of tools for matplotlib. For the most part, these tools are only loosely

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 jdh2...@gmail.com 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

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 david.kremer...@gmail.comwrote: 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

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

2012-07-04 Thread Tony Yu
On Wed, Jul 4, 2012 at 10:14 PM, Jorge Scandaliaris jorgesmbox...@yahoo.eswrote: 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

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

2012-07-04 Thread Tony Yu
On Wed, Jul 4, 2012 at 11:11 PM, Jorge Scandaliaris jorgesmbox...@yahoo.eswrote: De: Tony Yu tsy...@gmail.com Just a wild guess: Any chance you're using some GUI-toolkit-specific functionality? Can you elaborate please? I use the GTKAgg backend, and I guess IPython has specific

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 walksl...@gmail.comwrote: 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

Re: [Matplotlib-users] tornado chart

2012-06-21 Thread Tony Yu
On Thu, Jun 21, 2012 at 6:42 PM, Alan G Isaac alan.is...@gmail.com 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:

Re: [Matplotlib-users] ymax

2012-06-07 Thread Tony Yu
On Thu, Jun 7, 2012 at 12:14 PM, kamel maths kamel.ma...@gmail.com 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 =

Re: [Matplotlib-users] y-axis misbehavior

2012-06-07 Thread Tony Yu
On Thu, Jun 7, 2012 at 3:44 PM, Mark Gurling magurl...@gmail.com 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

Re: [Matplotlib-users] ymax

2012-06-06 Thread Tony Yu
On Wed, Jun 6, 2012 at 3:32 PM, kamel maths kamel.ma...@gmail.com 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 plot([1e3,2e3]) as

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 mark...@gmail.com 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' %

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 mark...@gmail.com 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

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 yasinber...@gmail.comwrote: 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

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 aldcr...@head.cfa.harvard.edu 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

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 you). This is used by plot and was one of my

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 sponsfrei...@gmail.comwrote: On Wed, May 23, 2012 at 6:27 PM, Tony Yu tsy...@gmail.com 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` will change

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

2012-05-24 Thread Tony Yu
On Thu, May 24, 2012 at 9:54 AM, Benjamin Root ben.r...@ou.edu 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()

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 sponsfrei...@gmail.comwrote: On Wed, May 23, 2012 at 11:00 AM, Guillaume Gay guilla...@mitotic-machine.org 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

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 amuel...@ais.uni-bonn.dewrote: ** Hi everybody. I have been trying to turn off xticks and yticks and their labels in matplotlibrc. Tickshttp://matplotlib.sourceforge.net/api/axis_api.html#matplotlib.axis.Tickhave an argument tick1On and

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 chaoyue...@gmail.com 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

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 staticfl...@gmail.com 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 module plt.tight_layout() File

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 w...@thearete.co.uk 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

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 jta...@gmail.com 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)

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

2012-03-31 Thread Tony Yu
On Fri, Mar 30, 2012 at 12:25 PM, eoj josephmeir...@gmail.com 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

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

2012-03-30 Thread Tony Yu
On Fri, Mar 30, 2012 at 2:47 PM, Skipper Seabold jsseab...@gmail.comwrote: 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

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

2012-03-30 Thread Tony Yu
On Fri, Mar 30, 2012 at 4:40 PM, Eric Firing efir...@hawaii.edu 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

Re: [Matplotlib-users] reverse colormap?

2012-03-29 Thread Tony Yu
On Thu, Mar 29, 2012 at 1:31 PM, Chao YUE chaoyue...@gmail.com 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:

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 zachary.pin...@yale.edu I'd like to display a scatter plot where the size for each element is fixed.

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 dhy...@gmail.com 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

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 klo...@gmail.com wrote: On Sun, Mar 18, 2012 at 1:50 PM, Angus McMorland amcm...@gmail.comwrote: 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 =

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 ben.r...@ou.edu wrote: On Sunday, March 18, 2012, Tony Yu tsy...@gmail.com wrote: On Sun, Mar 18, 2012 at 9:14 AM, klo uo klo...@gmail.com wrote: On Sun, Mar 18, 2012 at 1:50 PM, Angus McMorland amcm...@gmail.com wrote: For inline

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 kus...@interfree.it 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

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

2012-03-14 Thread Tony Yu
On Wed, Mar 14, 2012 at 6:02 AM, kususe kus...@interfree.it 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. --

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 kus...@interfree.it 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

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

2012-03-14 Thread Tony Yu
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 advance K. Tony Yu-3 wrote: On Wed, Mar 14, 2012

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

2012-03-14 Thread Tony Yu
that way. -Tony Tony Yu-3 wrote: On Wed, Mar 14, 2012 at 1:41 PM, kususe kus...@interfree.it wrote: Thanks, it works. But if the graph is just one in a figure. I created various graph and I wanna remove all ticks in all of X axis. I coded: plt.subplot(3,1,1

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 tsy...@gmail.com 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.set_ylim((-5,3

Re: [Matplotlib-users] draw_event

2012-02-28 Thread Tony Yu
On Tue, Feb 28, 2012 at 4:05 PM, Antoine Sirinelli anto...@monte-stello.com 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

Re: [Matplotlib-users] Fwd: Matplotlib gallery

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

Re: [Matplotlib-users] plot as individual colorbars

2012-02-18 Thread Tony Yu
On Tue, Feb 14, 2012 at 12:49 PM, Olе Streicher ole-usenet-s...@gmx.netwrote: Jerzy Karczmarczuk jerzy.karczmarc...@unicaen.fr 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

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 dantwell...@gmail.comwrote: 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

Re: [Matplotlib-users] plot as individual colorbars

2012-02-14 Thread Tony Yu
On Tue, Feb 14, 2012 at 9:48 AM, Olе Streicher ole-usenet-s...@gmx.netwrote: 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

Re: [Matplotlib-users] plot as individual colorbars

2012-02-14 Thread Tony Yu
On Tue, Feb 14, 2012 at 10:33 AM, Olе Streicher ole-usenet-s...@gmx.netwrote: Tony Yu tsy...@gmail.com writes: Does the following do what you need? # import numpy as np import matplotlib.pyplot as plt width = 0.5 height = 10 for x in np.arange(11): strip

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 plut...@gmail.com 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

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

2012-02-08 Thread Tony Yu
instructed. -Tony On Wed, Feb 8, 2012 at 10:13 AM, John Hunter jdh2...@gmail.com wrote: On Wed, Feb 8, 2012 at 12:06 PM, Tony Yu tsy...@gmail.com wrote: git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git did not go through. - Chris I don't think you

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 mmokr...@fold.natur.cuni.czwrote: 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

Re: [Matplotlib-users] subplot and image

2012-01-31 Thread Tony Yu
On Tue, Jan 31, 2012 at 12:56 PM, Petro Khoroshyy khoros...@gmail.comwrote: 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:

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 cmpyt...@gmail.com wrote: On Wed, Jan 4, 2012 at 2:19 PM, Benjamin Root ben.r...@ou.edu wrote: On Wednesday, January 4, 2012, jeffsp jef...@gmail.com wrote: plt.tight_layout(), sweet it still makes the labels too close to read, even if they

Re: [Matplotlib-users] (no subject)

2012-01-29 Thread Tony Yu
On Sun, Jan 29, 2012 at 2:21 AM, Paul Hobson pmhob...@gmail.com 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',

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 paa...@gmail.comwrote: 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

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, mouseevent,

Re: [Matplotlib-users] histogram plots color range

2012-01-27 Thread Tony Yu
On Fri, Jan 27, 2012 at 11:27 AM, nahren manuel meetnah...@yahoo.comwrote: 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

Re: [Matplotlib-users] histogram plots color range

2012-01-27 Thread Tony Yu
On Fri, Jan 27, 2012 at 4:01 PM, josef.p...@gmail.com wrote: On Fri, Jan 27, 2012 at 12:18 PM, Tony Yu tsy...@gmail.com wrote: On Fri, Jan 27, 2012 at 11:27 AM, nahren manuel meetnah...@yahoo.com wrote: Hello , I have a two dimensional array, 40X20(rowsXcolumns). Each of the 40

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 i...@sbientje.nlwrote: 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

Re: [Matplotlib-users] Problem with cachedRenderer

2012-01-25 Thread Tony Yu
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 at 12:53 PM, andi andiss...@googlemail.com wrote: Hi all, I have some

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 jhem...@sportsauthority.comwrote: 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

Re: [Matplotlib-users] Path lacks initial MOVETO

2012-01-23 Thread Tony Yu
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/19 Tony Yu tsy...@gmail.com On Thu, Jan 19, 2012 at 12

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

2012-01-23 Thread Tony Yu
2012/1/23 Gousios George gg...@windowslive.com ** Στις 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 gg...@windowslive.comwrote: Στις 21/01/2012 04:54 μμ, ο/η Tony Yu έγραψε: On Sat

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

2012-01-23 Thread Tony Yu
2012/1/23 Gousios George gg...@windowslive.com ** Στις 23/01/2012 06:52 μμ, ο/η Tony Yu έγραψε: 2012/1/23 Gousios George gg...@windowslive.com Στις 21/01/2012 07:43 μμ, ο/η Gousios George έγραψε: Στις 21/01/2012 07:05 μμ, ο/η Tony Yu έγραψε: On Sat, Jan 21, 2012 at 11:31 AM

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

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

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

2012-01-23 Thread Tony Yu
On Mon, Jan 23, 2012 at 2:43 PM, reckoner recko...@gmail.com 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

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 gg...@windowslive.comwrote: 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)

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 gg...@windowslive.comwrote: ** Στις 21/01/2012 04:54 μμ, ο/η Tony Yu έγραψε: On Sat, Jan 21, 2012 at 9:07 AM, Gousios George gg...@windowslive.comwrote: Hello , i have the following code in matlab and trying to do it in matplotlib. I

Re: [Matplotlib-users] Grid problem?

2012-01-19 Thread Tony Yu
On Thu, Jan 19, 2012 at 12:44 AM, Paul Ivanov pivanov...@gmail.com 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

Re: [Matplotlib-users] Path lacks initial MOVETO

2012-01-19 Thread Tony Yu
On Thu, Jan 19, 2012 at 12:07 PM, Bruno Santos bacmsan...@gmail.com 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

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 x...@thebuild.comwrote: 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

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 ben.r...@ou.edu wrote: On Thu, Jan 12, 2012 at 11:04 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus x...@thebuild.comwrote: On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: Does everything work

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Tony Yu
On Thu, Jan 5, 2012 at 11:51 AM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Jan 5, 2012 at 7:56 AM, Jonathan Slavin jsla...@cfa.harvard.eduwrote: 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

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 jef...@gmail.com 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

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 mariofu...@aol.com 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

Re: [Matplotlib-users] Speeding up pcolor plot

2011-12-20 Thread Tony Yu
On Tue, Dec 20, 2011 at 9:22 AM, Brad Malone brad.mal...@gmail.com wrote: HI Paul, Thanks. I didn't realize it was that simple (appears that doing this essentially plots everything against integers in x and y). This will be a good backup plan if I can't get pcolor to work, although as you

Re: [Matplotlib-users] collections?

2011-12-09 Thread Tony Yu
On Fri, Dec 9, 2011 at 4:11 PM, Daniel Hyams dhy...@gmail.com wrote: I'm sorry, I should have stated the version. I'm using 1.0.0, which just returns a list of rectangle artists. On Fri, Dec 9, 2011 at 4:08 PM, Benjamin Root ben.r...@ou.edu wrote: On Fri, Dec 9, 2011 at 2:55 PM, Daniel

Re: [Matplotlib-users] collections?

2011-12-09 Thread Tony Yu
On Fri, Dec 9, 2011 at 5:23 PM, Tony Yu tsy...@gmail.com wrote: On Fri, Dec 9, 2011 at 4:11 PM, Daniel Hyams dhy...@gmail.com wrote: I'm sorry, I should have stated the version. I'm using 1.0.0, which just returns a list of rectangle artists. On Fri, Dec 9, 2011 at 4:08 PM, Benjamin

  1   2   >