Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Gökhan Sever
On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES mrngil...@gmail.com wrote: Sure, I'll be careful about that. I'm going to go try and design some new interesting ones. Maybe adding some styles specific to some plot types could be useful. Also some styles specific for some applications

Re: [Matplotlib-users] CAPE and CIN calculation in Python

2014-03-31 Thread Gökhan Sever
- T uses. If you ask, Dennis Shea of NCAR might break the code out for you. It is trivial to wrap using f2py ( f77). On Mar 29, 2014, at 3:32 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, Lately, I am working on plotting sounding profiles on a SkewT/LogP diagram. The SkewT package

Re: [Matplotlib-users] [Pyaos] CAPE and CIN calculation in Python

2014-03-31 Thread Gökhan Sever
/soundings.py, along with other useful scripts. - Daniel Rothenberg On Sat, Mar 29, 2014 at 6:32 PM, Gökhan Sever gokhanse...@gmail.comwrote: Hello, Lately, I am working on plotting sounding profiles on a SkewT/LogP diagram. The SkewT package which is located at https://github.com/tchubb/SkewT

Re: [Matplotlib-users] CAPE and CIN calculation in Python

2014-03-31 Thread Gökhan Sever
SciPy conference. The abstract deadline is tomorrow. I might join if I can get some funding to attend the conference. Is there any symposium planned for atmospheric science people? Thanks again. On Sat, Mar 29, 2014 at 6:32 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, Lately, I am

[Matplotlib-users] CAPE and CIN calculation in Python

2014-03-29 Thread Gökhan Sever
Hello, Lately, I am working on plotting sounding profiles on a SkewT/LogP diagram. The SkewT package which is located at https://github.com/tchubb/SkewT has a nice feature to lift a parcel on dry/moist adiabats. This is very useful to demonstrate the regions of CIN and CAPE overlaid with the full

Re: [Matplotlib-users] set_scale and set_xscale

2013-03-29 Thread Gökhan Sever
Here it comes - https://github.com/matplotlib/matplotlib/issues/1871 On Fri, Mar 29, 2013 at 6:57 AM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Mar 28, 2013 at 12:52 PM, Gökhan Sever gokhanse...@gmail.com wrote: There is no documentation supplied for the first call. Should I file

Re: [Matplotlib-users] set_scale and set_xscale

2013-03-28 Thread Gökhan Sever
There is no documentation supplied for the first call. Should I file an issue for this on github? On Wed, Mar 27, 2013 at 7:10 AM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Mar 27, 2013 at 1:03 AM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, Aren't these two log scaling calls

[Matplotlib-users] set_scale and set_xscale

2013-03-26 Thread Gökhan Sever
Hello, Aren't these two log scaling calls supposed to be performing the same action? Here is a simple script tested in ipython --pylab fig = plt.figure(figsize=(5, 5)) ax1 = fig.add_subplot(1,1,1) ax1.plot(np.random.randn(100)) ax1.xaxis.set_scale('log') ax1.set_xscale('log') Thanks. --

Re: [Matplotlib-users] Unicode characters in PS output

2013-02-28 Thread Gökhan Sever
not included in ye olde style postscript standard font embedded into your laser printer wy back then in the last millenium... Am 26.02.2013 um 21:26 schrieb Gökhan Sever: On Tue, Feb 26, 2013 at 8:29 AM, Pierre Haessig pierre.haes...@crans.org wrote: Le 26/02/2013 14:38, Gökhan Sever

Re: [Matplotlib-users] Unicode characters in PS output

2013-02-26 Thread Gökhan Sever
On Mon, Feb 25, 2013 at 11:00 PM, Ryan Nelson rnelsonc...@gmail.com wrote: On 2/25/2013 9:29 PM, Gökhan Sever wrote: Hello, For some reason, I can't get the degree sign showing up in my ps output: Here is the simple test code: fp = plt.figure(figsize=(8.5, 11)) fp.text(0.5, 0.5

Re: [Matplotlib-users] Unicode characters in PS output

2013-02-26 Thread Gökhan Sever
On Tue, Feb 26, 2013 at 6:02 AM, Pierre Haessig pierre.haes...@crans.orgwrote: Hi, Le 26/02/2013 12:38, Gökhan Sever a écrit : fp = plt.figure(figsize=(8.5, 11)) fp.text(0.5, 0.5, uTemperature, \u00B0C, color='black', fontsize=16) plt.savefig('test.ps', papertype='letter') plt.savefig

Re: [Matplotlib-users] Unicode characters in PS output

2013-02-26 Thread Gökhan Sever
On Tue, Feb 26, 2013 at 8:29 AM, Pierre Haessig pierre.haes...@crans.orgwrote: Le 26/02/2013 14:38, Gökhan Sever a écrit : Could you test my outputs if they look fine on your side? http://atmos.uwyo.edu/~gsever/data/matplotlib/test.pdf http://atmos.uwyo.edu/~gsever/data/matplotlib

[Matplotlib-users] Unicode characters in PS output

2013-02-25 Thread Gökhan Sever
Hello, For some reason, I can't get the degree sign showing up in my ps output: Here is the simple test code: fp = plt.figure(figsize=(8.5, 11)) fp.text(0.5, 0.5, uTemperature, ⁰C, color='black', fontsize=16) plt.savefig('test.ps', papertype='letter') plt.savefig('test.pdf', papertype='letter')

Re: [Matplotlib-users] Problem saving open symbols in PDF

2012-10-18 Thread Gökhan Sever
On Thu, Oct 18, 2012 at 2:09 AM, Jouni K. Seppänen j...@iki.fi wrote: Gökhan Sever gokhanse...@gmail.com writes: Another point I noticed is setting linewidth to 0 (in fill_between function) isn't working as expected when figure is saved as a PDF file. A workaround is to add edgecolor

Re: [Matplotlib-users] Problem saving open symbols in PDF

2012-10-17 Thread Gökhan Sever
/matplotlib/issues/1410 On 10/16/2012 10:38 PM, Eric Firing wrote: On 2012/10/16 4:27 PM, Gökhan Sever wrote: Hello, I see that a few days old clone of mpl, cannot save open symbols correctly in a pdf file. Here is a simple test case (in ipython --pylab): I6 xx = np.random.random(1000) I7

Re: [Matplotlib-users] Problem saving open symbols in PDF

2012-10-17 Thread Gökhan Sever
On Wed, Oct 17, 2012 at 10:21 AM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Oct 17, 2012 at 12:17 PM, Gökhan Sever gokhanse...@gmail.comwrote: Thanks Mike, Another point I noticed is setting linewidth to 0 (in fill_between function) isn't working as expected when figure is saved

Re: [Matplotlib-users] Problem saving open symbols in PDF

2012-10-17 Thread Gökhan Sever
I see that the same behavior here on 3 different viewers. It is a slight aesthetic issue, but once in a while I come up similar differences between PDF and PNGs outputs. -- Gökhan -- Everyone hates slow websites. So do

Re: [Matplotlib-users] Problem saving open symbols in PDF

2012-10-17 Thread Gökhan Sever
On Wed, Oct 17, 2012 at 12:03 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: Also notice the triangle transparency... True. Mike's 4 line addition fixes that issue: https://github.com/matplotlib/matplotlib/issues/1410 -- Gökhan

[Matplotlib-users] Problem saving open symbols in PDF

2012-10-16 Thread Gökhan Sever
Hello, I see that a few days old clone of mpl, cannot save open symbols correctly in a pdf file. Here is a simple test case (in ipython --pylab): I6 xx = np.random.random(1000) I7 plt.plot(xx, 'D', mfc='none') On screen open symbols are fine, as expected transparency works fine, however when

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Gökhan Sever
On Thu, Oct 11, 2012 at 3:49 AM, Damon McDougall damon.mcdoug...@gmail.comwrote: Gökhan, did you implement the symlink fix? If so, would you mind making a pull request out of it? I was just about to look into doing this, but if you've done it already that'd save us some effort rolling out

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Gökhan Sever
I am not sure about that technical detail, but it works fine here on my Fedora 16 (x86_64) system. On Thu, Oct 11, 2012 at 11:04 AM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Thursday, October 11, 2012, Gökhan Sever wrote: On Thu, Oct 11, 2012 at 3:49 AM, Damon McDougall

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-10 Thread Gökhan Sever
, of course. I'll have to see if there's another way to handle this. Mike On 10/09/2012 09:36 PM, Gökhan Sever wrote: Hello, With a fresh git clone git://github.com/matplotlib/matplotlib.git sudo python setupegg.py develop Starting ipython --pylab I get this error: .../matplotlib

[Matplotlib-users] Pylab import error due to dateutil

2012-10-09 Thread Gökhan Sever
Hello, With a fresh git clone git://github.com/matplotlib/matplotlib.git sudo python setupegg.py develop Starting ipython --pylab I get this error: .../matplotlib/lib/matplotlib/dates.py in module() 120 import matplotlib.ticker as ticker 121 -- 122 from dateutil.rrule import rrule, MO,

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-05 Thread Gökhan Sever
On Fri, Oct 5, 2012 at 10:26 AM, Fernando Perez fperez@gmail.comwrote: @Article{Hunter:2007, Author = {Hunter, J. D.}, Title = {Matplotlib: A 2D graphics environment}, Journal= {Computing In Science \ Engineering}, Volume = {9}, Number

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-05 Thread Gökhan Sever
On Fri, Oct 5, 2012 at 11:45 AM, Nelle Varoquaux nelle.varoqu...@gmail.comwrote: I think including a gallery of published examples would be great, however, there will be some serious challenges with regards to copyright. It would be great to show MPL being used in high impact journals (which

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-05 Thread Gökhan Sever
On Fri, Oct 5, 2012 at 1:23 PM, Damon McDougall damon.mcdoug...@gmail.comwrote: On Fri, Oct 5, 2012 at 8:11 PM, Gökhan Sever gokhanse...@gmail.com wrote: Seeing mpl produced plots would be only 1 or 2 clicks away, plus this would This is not true. A lot of articles are unavailable

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-05 Thread Gökhan Sever
On Fri, Oct 5, 2012 at 2:02 PM, Francesco Montesano franz.berges...@gmail.com wrote: I think that an official acknowledgment that people can copy and paste (and adapt) in their paper would be a great idea. Francesco Some open-access journals permit this: See for instance (also an

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-05 Thread Gökhan Sever
On Fri, Oct 5, 2012 at 2:47 PM, Phil Austin mkpaus...@gmail.com wrote: Nice to see our matplotlib acknowledgement generating ripples. We've also got some mayavi animations and links to other matplotlib-plotted papers and posters at http://cafc.ubc.ca best, Phil Nice visuals Phil. Thanks

[Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-04 Thread Gökhan Sever
Hello, Is there any collection of articles that shows academic articles using matplotlib produced plots? I have come across a few recent articles in my field with plots produced by matplotlib. Though, the mpl page shows some nice examples of publication quality plots, it would be nice to have a

Re: [Matplotlib-users] Control the position of a figure window

2012-10-03 Thread Gökhan Sever
I was after a similar issue once, and asked this question at SO: http://stackoverflow.com/questions/7802366/matplotlib-window-layout-questions Manual positioning is fine sometimes if I want to really place windows side-by-side for comparison purposes. However it would be nicer if mpl were to

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-17 Thread Gökhan Sever
There is one issue I spotted in this code. Although hard to notice from the produced plot, only the latest grid is updated when set_ydata is called. So a slight modification makes this code running correctly as originally intended. L1list = [] L2list = [] for i in range(nums): for j in

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-07 Thread Gökhan Sever
the output file sizes. Best, -Michiel. --- On *Thu, 7/5/12, Gökhan Sever gokhanse...@gmail.com* wrote: From: Gökhan Sever gokhanse...@gmail.com Subject: Re: [Matplotlib-users] Accelerating PDF saved plots To: Benjamin Root ben.r...@ou.edu Cc: matplotlib-users@lists.sourceforge.net Date

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
On Thu, Jul 5, 2012 at 8:45 AM, Gökhan Sever gokhanse...@gmail.com wrote: On Thu, Jul 5, 2012 at 7:29 AM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Jul 4, 2012 at 1:17 PM, Gökhan Sever gokhanse...@gmail.comwrote: Hello, I am working on creating some distribution plots to analyze cloud

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
On Thu, Jul 5, 2012 at 11:15 AM, Fabrice Silva si...@lma.cnrs-mrs.frwrote: At end of the outer loop, instead of closing the figure, you should call remove() for each plot element you made. Essentially, as you loop over the inner loop, save the output of the plot() call to a list, and

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
And you might get back more memory if you didn't have to have all the data in memory at once, but that may or may not help you. The only other suggestion I can make is to attempt to eliminate the overhead in the inner loop. Essentially, I would try making a single figure and a single

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
38 * 16 = 608 80 / 608 = 0.1316 seconds per plot At this point, I doubt you are going to get much more speed-ups. Glad to be of help! Fabrice -- Good suggestion! I should have thought of that given how much I use that technique in doing animation. Ben Root I am including profiled

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
On Thu, Jul 5, 2012 at 12:17 PM, Benjamin Root ben.r...@ou.edu wrote: Actually, looking at Fabrice's code, you might be able to get it to be slightly faster. Lines 39-41 should be protected by a if i == 0 statement because it only needs to be done once. Furthermore, you might get some more

[Matplotlib-users] Accelerating PDF saved plots

2012-07-04 Thread Gökhan Sever
Hello, I am working on creating some distribution plots to analyze cloud droplet and drop features. You can see one such plot at http://atmos.uwyo.edu/~gsever/data/rf06_1second/rf06_belowcloud_SurfaceArea_1second.pdf This file contains 38 pages and each page has 16 panels created via MPL's

Re: [Matplotlib-users] how to set figure to appear on another monitor?

2012-05-23 Thread Gökhan Sever
On Wed, May 23, 2012 at 8:32 AM, Chao YUE chaoyue...@gmail.com wrote: Dear all, I have two different monitors. How can I use plot command within terminal in this monitor and set the figure to show defaultly in another one? thanks, Chao Hello, I have a similar question posted on SO -

Re: [Matplotlib-users] Plotting issue using recent matplotlib

2012-05-16 Thread Gökhan Sever
...@stsci.edu wrote: Nevermind -- I've got something to reproduce this and am looking into it now. Mike On 05/16/2012 08:13 AM, Michael Droettboom wrote: On 05/15/2012 07:57 PM, Gökhan Sever wrote: Hello, I have encountered a weird plotting issue recently using a recent mpl clone

Re: [Matplotlib-users] Plotting issue using recent matplotlib

2012-05-16 Thread Gökhan Sever
= np.linspace(0, 3.14 * 2, 3000) y = np.sin(x) x[::100] = np.nan plt.plot(x, y) plt.ylim(-0.25, 0.25) plt.show() Mike On 05/16/2012 10:44 AM, Gökhan Sever wrote: Hi Mike, Could you inform me about your progress? I can test your sample script. I was thinking to test from v1.1.x branch

Re: [Matplotlib-users] Plotting issue using recent matplotlib

2012-05-16 Thread Gökhan Sever
Bisecting is definitely a better idea than my one-by-one setup iteration :) Thanks for sharing the tip. On Wed, May 16, 2012 at 8:54 AM, Michael Droettboom md...@stsci.edu wrote: On 05/16/2012 10:44 AM, Gökhan Sever wrote: Could you inform me about your progress? I can test your sample

Re: [Matplotlib-users] Plotting issue using recent matplotlib

2012-05-16 Thread Gökhan Sever
On Wed, May 16, 2012 at 9:30 AM, Michael Droettboom md...@stsci.edu wrote: Or, in an existing clone of the main repository, add my fork as a remote git remote add mdboom git://github.com/mdboom/matplotlib.git git fetch mdboom git checkout mdboom/clipping-bug Here are my steps

[Matplotlib-users] Plotting issue using recent matplotlib

2012-05-15 Thread Gökhan Sever
Hello, I have encountered a weird plotting issue recently using a recent mpl clone. See the linked pdfs for better demonstration of the issue: http://atmos.uwyo.edu/~gsever/data/vocals_RF04_NU05_newmpl.pdf http://atmos.uwyo.edu/~gsever/data/vocals_RF04_NU05_oldmpl.pdf newmpl file is created

Re: [Matplotlib-users] CHANGELOG

2012-02-24 Thread Gökhan Sever
This seems to be the most up-to-date: https://github.com/matplotlib/matplotlib/blob/master/CHANGELOG Another way of staying current with the changes is by following the commit messages from https://github.com/matplotlib/matplotlib/commits/master (I follow the changes via the RSS link) On Fri,

Re: [Matplotlib-users] ScalarFormatter

2012-02-20 Thread Gökhan Sever
Hello, Stealing a solution from - http://old.nabble.com/scientific-notation-in-ticklabels-for-linear-plot-td29993489.html This seems to produce nicer looking y tick-labels. I tend to switch to log-scale in cases like yours, but this one provides a clean solution as well. import numpy as np

Re: [Matplotlib-users] Partial coloring of text in matplotlib

2012-02-08 Thread Gökhan Sever
This is the solution which requires the least modification to the original text inserting functions. The only drawback is like you said, it only works with ps backend. Any idea if this could be generalized for other backends? On Tue, Feb 7, 2012 at 3:44 PM, Yann Tambouret yannp...@bu.edu wrote:

[Matplotlib-users] Partial coloring of text in matplotlib

2012-02-07 Thread Gökhan Sever
Is there a way in matplotlib to partially specify the color of a string? Example: plt.ylabel(Today is cloudy.) How can I show today as red, is as green and cloudy. as blue? Thanks. PS: Asked also on http://stackoverflow.com/questions/9169052/partial-coloring-of-text-in-matplotlib -- Gökhan

Re: [Matplotlib-users] Partial coloring of text in matplotlib

2012-02-07 Thread Gökhan Sever
I've wanted to add for a while. Can you file an Issue in the github tracker? Mike On 02/07/2012 11:40 AM, Gökhan Sever wrote: Is there a way in matplotlib to partially specify the color of a string? Example: plt.ylabel(Today is cloudy.) How can I show today as red, is as green

Re: [Matplotlib-users] Partial coloring of text in matplotlib

2012-02-07 Thread Gökhan Sever
This works as well, as long as it functions :) My idea requires little less typing. But forgot previously, text string should be whitespace split. On Tue, Feb 7, 2012 at 11:43 AM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Feb 7, 2012 at 12:38 PM, Gökhan Sever gokhanse...@gmail.comwrote

Re: [Matplotlib-users] Partial coloring of text in matplotlib

2012-02-07 Thread Gökhan Sever
wrote: On Tue, Feb 7, 2012 at 12:49 PM, Gökhan Sever gokhanse...@gmail.com wrote: This works as well, as long as it functions :) My idea requires little less typing. But forgot previously, text string should be whitespace split. Right, but we shouldn't guess. If we automatically split

Re: [Matplotlib-users] Partial coloring of text in matplotlib

2012-02-07 Thread Gökhan Sever
On Tue, Feb 7, 2012 at 12:46 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Feb 7, 2012 at 1:15 PM, Gökhan Sever gokhanse...@gmail.comwrote: I was basing my whitespace split idea on single string assumption --eg. no list passing. I do not have a strong preference on the final argument

[Matplotlib-users] Contour label positioning

2012-01-06 Thread Gökhan Sever
Hello group, I am trying to align contour labels on my plot. Using the latest git clone I was able to position the labels somewhat nicer than the default positioning. (Following from https://github.com/matplotlib/matplotlib/issues/613 ) However, it requires manual specification of right data

Re: [Matplotlib-users] Removing ticks and frame (imshow)

2011-11-25 Thread Gökhan Sever
On Thu, Nov 24, 2011 at 7:57 AM, Marianne C. mariyann...@gmail.com wrote: My name is Marianne, I am a beginner user of matplotlib. I am using imshow in pyplot. I am desperate to get rid of the ticks on both x and y axes (see attached picture). I do not need the black box around the data

Re: [Matplotlib-users] Meridians not show using Mercator projection

2011-11-17 Thread Gökhan Sever
Thanks Jeff and Eric. Both solutions simply works :) -- Gökhan -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats,

Re: [Matplotlib-users] MODIS data and true-color plotting

2011-11-16 Thread Gökhan Sever
On Sun, Nov 13, 2011 at 12:40 PM, Gökhan Sever gokhanse...@gmail.comwrote: Hello groups, I have two questions about working with MODIS data. 1-) Is there any light Pythonic HDF-EOS wrapper to handle HDF-EOS data other than PyNIO [http://www.pyngl.ucar.edu/Nio.shtml] Although, I have

[Matplotlib-users] Meridians not show using Mercator projection

2011-11-16 Thread Gökhan Sever
Hi, Using the example code shown below I can't get meridians plotted on the screen: from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np m = Basemap(projection='merc',lon_0=-79, lat_0=25.5, llcrnrlon=-93, urcrnrlon=-63, llcrnrlat=14,

[Matplotlib-users] MODIS data and true-color plotting

2011-11-13 Thread Gökhan Sever
Hello groups, I have two questions about working with MODIS data. 1-) Is there any light Pythonic HDF-EOS wrapper to handle HDF-EOS data other than PyNIO [http://www.pyngl.ucar.edu/Nio.shtml] Although, I have managed to install that package from its source, it took me many hours to figure out

Re: [Matplotlib-users] MODIS data and true-color plotting

2011-11-13 Thread Gökhan Sever
On Sun, Nov 13, 2011 at 12:57 PM, Jeff Whitaker jsw...@fastmail.fm wrote: Gökhan: netcdf4-python can read hdf5-eos files, and even hdf4-eos files if the netcdf C lib is built with hdf4 support. -Jeff I can't build netcdf4 C libraries with HDF4 support. [gsever@ccn hdf-4.2.6]$ ./configure

Re: [Matplotlib-users] MODIS data and true-color plotting

2011-11-13 Thread Gökhan Sever
it globally would break possible dependencies in any packaging system, and lastly it's just pain to build it if it's worth On Sun, Nov 13, 2011 at 10:12 PM, Gökhan Sever gokhanse...@gmail.com wrote: When I remove hdf4 part from config, it builds successfully. Any ideas? This one still fails

Re: [Matplotlib-users] Time axis for imshow

2011-11-10 Thread Gökhan Sever
Kington jking...@wisc.edu wrote: On Wed, Nov 9, 2011 at 11:45 PM, Gökhan Sever gokhanse...@gmail.comwrote: Hello, Is there any easy way to specify a time-axis using imshow to plot 2D data? Sure, just call ax.xaxis_date() (or yaxis_date, depending on which axis you want to represent a date

Re: [Matplotlib-users] Time axis for imshow

2011-11-10 Thread Gökhan Sever
together. (It's turning out to be slightly more complex than I thought...) I am fine seeing the ticks at second resolution. It might be overkill for my plots to place millisecond ticks. It takes a while to render these ticks. On Thu, Nov 10, 2011 at 10:06 AM, Gökhan Sever gokhanse

[Matplotlib-users] Time axis for imshow

2011-11-09 Thread Gökhan Sever
Hello, Is there any easy way to specify a time-axis using imshow to plot 2D data? Thanks. -- Gökhan -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now

[Matplotlib-users] Broken links on gallery

2011-11-05 Thread Gökhan Sever
Hi, These two links seem to be broken here: http://matplotlib.sourceforge.net/examples/api/demo_affine_image_00.html http://matplotlib.sourceforge.net/examples/pylab_examples/demo_tight_layout_00.html -- RSA(R)

[Matplotlib-users] Gradient color on a line plot

2011-11-05 Thread Gökhan Sever
Hi, I was wondering this about 2 years ago [ http://old.nabble.com/Gradient-color-on-a-line-object-td25630375.html] Just today, I have found a very simple way to do this in mpl. x = np.linspace(0, 2*np.pi, 3600) y = np.sin(x) plt.scatter(x,y,c=range(len(x)), marker='_', s=1) Setting the marker

[Matplotlib-users] Scrolling plot and colorbar

2011-11-02 Thread Gökhan Sever
Hello, I slightly modified the example show at http://www.scipy.org/Cookbook/Matplotlib/ScrollingPlot to plot image data. My version of the code is at: http://code.google.com/p/ccnworks/source/browse/trunk/various/scroll.py What is the correct way to add a colorbar to this plot? A simple

Re: [Matplotlib-users] Scrolling plot and colorbar

2011-11-02 Thread Gökhan Sever
A self response: self.fig.colorbar(self.plot_data) does the trick. On Wed, Nov 2, 2011 at 11:14 AM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, I slightly modified the example show at http://www.scipy.org/Cookbook/Matplotlib/ScrollingPlot to plot image data. My version of the code

Re: [Matplotlib-users] plotting two (x) axes for the same figure

2011-10-13 Thread Gökhan Sever
Hi, Not directly answering your questions but the code below produces what you are trying to achieve: import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.parasite_axes import SubplotHost plt.close('all') fig1 = plt.figure(figsize=(11, 8.5)) ax1 = SubplotHost(fig1,

[Matplotlib-users] matplotlib window layout questions

2011-10-07 Thread Gökhan Sever
Hello, I have two questions regarding to the positioning of a mpl window (using WXAgg backend) 1-) How to create a maximized window, instead of me clicking on window to maximize it each time? 2-) I have two screens. Interestingly, my mpl windows tend to open on my small screen. How can I force

Re: [Matplotlib-users] Problem with tick locater

2011-09-24 Thread Gökhan Sever
. Any comments/other solutions? Thanks. * * On Fri, Sep 23, 2011 at 10:47 PM, Gökhan Sever gokhanse...@gmail.comwrote: OK, This fixes the minor locations on y-axis ax1.yaxis.set_minor_locator(ticker.LogLocator(subs=np.arange(2.0, 10.0))) Independent of the data-range. It seems like

[Matplotlib-users] Multiple axes related questions

2011-09-24 Thread Gökhan Sever
Hello, Please consider my attached examples. hw3.py nicely produces multiple axes electromagnetic spectrum with solar and terrestrial radiation plotted using Planck's function. However, the major and minor ticks placements are not nice in those plots and I have decided to use the new axis_grid1

[Matplotlib-users] Problem with tick locater

2011-09-23 Thread Gökhan Sever
Hello, Considering this example plot: http://imageshack.us/photo/my-images/27/imagefki.png/ How can I get the minor ticks showing correctly? (ie., 9 minor ticks per decade likewise for the x-axis) For some reason axis.set_minor_locator(LogLocator(numdecs=9) is not producing the desired output.

Re: [Matplotlib-users] Problem with tick locater

2011-09-23 Thread Gökhan Sever
On Fri, Sep 23, 2011 at 1:22 PM, Benjamin Root ben.r...@ou.edu wrote: On Fri, Sep 23, 2011 at 2:07 PM, Gökhan Sever gokhanse...@gmail.comwrote: Hello, Considering this example plot: http://imageshack.us/photo/my-images/27/imagefki.png/ How can I get the minor ticks showing correctly? (ie

Re: [Matplotlib-users] Problem with tick locater

2011-09-23 Thread Gökhan Sever
PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, Considering this example plot: http://imageshack.us/photo/my-images/27/imagefki.png/ How can I get the minor ticks showing correctly? (ie., 9 minor ticks per decade likewise for the x-axis) For some reason axis.set_minor_locator

Re: [Matplotlib-users] Problem with tick locater

2011-09-23 Thread Gökhan Sever
OK, This fixes the minor locations on y-axis ax1.yaxis.set_minor_locator(ticker.LogLocator(subs=np.arange(2.0, 10.0))) Independent of the data-range. It seems like ticker.LogLocator is trying to adjust the minor locs internally. On Fri, Sep 23, 2011 at 7:18 PM, Gökhan Sever gokhanse

Re: [Matplotlib-users] 2 x-axes

2011-09-11 Thread Gökhan Sever
The master is here. JJ had showed me those multi axes tricks and he is back again with the plenty of changes to the axes_grid toolkit. The best thing to do is to make a new clone from the master repo and experiment. On Sun, Sep 11, 2011 at 1:37 PM, Neal Becker ndbeck...@gmail.com wrote:

Re: [Matplotlib-users] 2 x-axes

2011-09-09 Thread Gökhan Sever
Hi, The code below should create a properly placed 2nd x-axis. You might need to adjust the placement of the figure canvas to match into the window. import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.parasite_axes import SubplotHost fig = plt.figure(figsize=(10,8))

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Gökhan Sever
On Wed, Jul 20, 2011 at 5:41 PM, C M cmpyt...@gmail.com wrote: On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg gbuchh...@infiniacorp.com wrote: -Original Message- From: C M [mailto:cmpyt...@gmail.com] Sorry, this is super-simple, but I'm lost in the whole locator/formatter part of

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Gökhan Sever
On Wed, Jul 20, 2011 at 7:17 PM, C M cmpyt...@gmail.com wrote: On Wed, Jul 20, 2011 at 7:56 PM, Gökhan Sever gokhanse...@gmail.com wrote: On Wed, Jul 20, 2011 at 5:41 PM, C M cmpyt...@gmail.com wrote: On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg gbuchh...@infiniacorp.com wrote

Re: [Matplotlib-users] incremental colors for lines

2011-05-09 Thread Gökhan Sever
On Mon, May 9, 2011 at 5:11 PM, Pythonified netdriverem...@gmail.comwrote: Pythonified wrote: I have been trying to assign different colors for each line I plot, where the colors are incrementally darkened (or lightened), or selected from a colorbar (e.g. rainbow). Any ideas? I

[Matplotlib-users] Radar and/or lidar data visualization

2011-05-06 Thread Gökhan Sever
Hello, Anyone on the list works with radar and/or lidar data for atmospheric phenomenon visualisation? I am wondering if there is any 2D specific analysis and visualisation package out in the web. Thanks. -- Gökhan --

Re: [Matplotlib-users] [Numpy-discussion] Anybody going to PyCon?

2011-03-10 Thread Gökhan Sever
Yung-Yu, We are advertised on this blog http://pycon.blogspot.com/2011/03/pycon-2011-outside-talks-poster-session.html I will be in the conference venue by tomorrow morning. There are many interesting talks and posters that I look forward seeing plus meeting those presenters. See you in

[Matplotlib-users] Anybody going to PyCon?

2011-03-07 Thread Gökhan Sever
Hello, I am going to the PyCon this week. I am presenting a poster about an atmospheric sciences related project -- the most active development from my coding site over at http://code.google.com/p/ccnworks/ Is there anybody in the community participating there as well? Any plans for sprinting or

Re: [Matplotlib-users] Make the area a bit larger

2011-02-28 Thread Gökhan Sever
On Mon, Feb 28, 2011 at 10:48 AM, Andrea Crotti andrea.crott...@gmail.comwrote: So since I wanted some space on the borders of my graph, I did this really extremely convoluted thing, which apparently works... I get a 10% more area on each side, but I'm quite sure there's a better way to this,

[Matplotlib-users] Any update on streamline plot

2011-02-11 Thread Gökhan Sever
Hi, I see two related requests on: http://old.nabble.com/matplotlib-to-draw-streamlines--td28008708.html http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg07267.html a request filed on http://sourceforge.net/tracker/index.php?func=detailaid=3080981group_id=80706atid=560723

Re: [Matplotlib-users] Legend outside plot?

2011-02-10 Thread Gökhan Sever
Hi, I would simply try to attach the legend to the figure object instead of the axis. On Thu, Feb 10, 2011 at 4:20 PM, Jeff Layton layto...@att.net wrote: Good evening, I've been trying to find a way to move the legend outside the plot so it doesn't cover it up. I've seen some things

Re: [Matplotlib-users] adding a number of minor tick marks between major tick marks feature

2010-11-30 Thread Gökhan Sever
On Mon, Nov 29, 2010 at 3:01 PM, Matthew W. Priddy mwpri...@gmail.com wrote: Matplotlib developers, I really like using matplotlib to create quality plots, and it seems to have an option for just about everything.  However, one thing that is not easy to change is the location of minor tick

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-25 Thread Gökhan Sever
On Wed, Nov 24, 2010 at 8:38 AM, Alejandro Weinstein alejandro.weinst...@gmail.com wrote: On Tue, Nov 23, 2010 at 9:37 AM, Gökhan Sever gokhanse...@gmail.com wrote: As I have learnt from Michael Droettboom, you can simply use unicode characters with a supported font set: In my setup I prefer

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-23 Thread Gökhan Sever
On Tue, Nov 23, 2010 at 10:22 AM, Alejandro Weinstein alejandro.weinst...@gmail.com wrote: Hi: I want to use the symbol corresponding to a marker in a text annotation. Something like textstr = 'This is the square marker: ?' ax.text(0.05, 0.95, textstr) Is there something I can place

Re: [Matplotlib-users] Too long tick labels

2010-10-22 Thread Gökhan Sever
On Fri, Oct 22, 2010 at 1:47 AM, Dmitry Vinokurov df6@gmail.com wrote: Hello, When I plot graph with values 10^5 and more at y axis, the labels are too long and run out of the picture borders. So I get 60 instead of 160 at y axis or something like this. Tried to use

Re: [Matplotlib-users] Question about legend on histogram plot

2010-10-22 Thread Gökhan Sever
On Fri, Oct 22, 2010 at 6:26 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever gokhanse...@gmail.com wrote: How could I change the appearance of the legend symbol in this case? It auto-uses a patch object (rectangle in this case). I would like to get

[Matplotlib-users] Question about legend on histogram plot

2010-10-20 Thread Gökhan Sever
Hello, Consider these two simple lines in IPython -pylab: plt.hist(np.random.randn(1000), normed=1, histtype='step', label='test', lw=2) plt.legend() How could I change the appearance of the legend symbol in this case? It auto-uses a patch object (rectangle in this case). I would like to get a

Re: [Matplotlib-users] Log scaling error on rev8753

2010-10-19 Thread Gökhan Sever
).  Are there any additional steps required to reproduce? Mike On 10/18/2010 09:50 PM, Gökhan Sever wrote: Hello, I can't log scale my axes on rev8753. It was working on a previous check-out (possibly a month old). Using WXagg, but same as with Qt4Agg. Any ideas what could be wrong

Re: [Matplotlib-users] Log scaling error on rev8753

2010-10-19 Thread Gökhan Sever
OK, I have just done an svn up and seen that this is fixed in http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?revision=8756view=revision Thanks for the fix. On Tue, Oct 19, 2010 at 10:06 AM, Gökhan Sever gokhanse...@gmail.com wrote: Sorry I have forgotten to add that you should issue

Re: [Matplotlib-users] Format y-axis tick labels in 'comma' notation ie 234004 would be 234, 004 etc.

2010-10-19 Thread Gökhan Sever
On Tue, Oct 19, 2010 at 1:31 PM, Dharhas Pothina dharhas.poth...@twdb.state.tx.us wrote: Hi All, I'm assuming this is possible and common but I'm not finding the correct combination of search terms to find any examples on the mailing list or online on how to do this. I'd like to display

Re: [Matplotlib-users] Ticks Size

2010-10-18 Thread Gökhan Sever
On Mon, Oct 18, 2010 at 5:36 PM, Eric Firing efir...@hawaii.edu wrote: setp(xticks, markeredgewidth=4) Ticks are markers. Eric Good catch. Thanks for the fix. -- Gökhan -- Download new Adobe(R) Flash(R)

[Matplotlib-users] Log scaling error on rev8753

2010-10-18 Thread Gökhan Sever
Hello, I can't log scale my axes on rev8753. It was working on a previous check-out (possibly a month old). Using WXagg, but same as with Qt4Agg. Any ideas what could be wrong in the trunk? It seems to me that some recent changes on LogLocator [

Re: [Matplotlib-users] matplotlib import warning

2010-10-01 Thread Gökhan Sever
), ) Now, I don't get any dateutil imported messages each time I launch an IPython session. On Wed, Sep 8, 2010 at 1:26 PM, Gökhan Sever gokhanse...@gmail.com wrote: It is clear with python -c import matplotlib I can't seem to find any dateutil phrase occurring within the IPython

Re: [Matplotlib-users] axes in matplotlib

2010-09-26 Thread Gökhan Sever
On Sun, Sep 26, 2010 at 3:49 AM, sa6113 s.payan...@gmail.com wrote: I want to use more than 2 axes in my plot, for example yleft,yright, butoom or top, is it possible? any body had done it before? I read in matplotlib's document that : matplotlib is organized around figures and axes. The

Re: [Matplotlib-users] Sigmoid Curve Fitting

2010-09-20 Thread Gökhan Sever
On Mon, Sep 20, 2010 at 3:36 PM, Chris Spencer chriss...@gmail.com wrote: Hi, Does Matplotlib/Numpy/Scipy contain the ability to fit a sigmoid curve to a set of data points? Regards, Chris I am very curious to know how this is done. I have seen in many Cloud Condensation Nuclei (CCN)

  1   2   3   4   >