Re: [Matplotlib-users] Simple text style question

2010-01-13 Thread Gökhan Sever
On Wed, Jan 13, 2010 at 10:32 AM, Gökhan Sever wrote: > > > On Wed, Jan 13, 2010 at 10:08 AM, Jae-Joon Lee wrote: > >> On Tue, Jan 12, 2010 at 9:56 PM, Gökhan Sever >> wrote: >> > What could be causing this discrepancy? Is there any way to use an >> &

Re: [Matplotlib-users] Simple text style question

2010-01-13 Thread Gökhan Sever
On Wed, Jan 13, 2010 at 10:08 AM, Jae-Joon Lee wrote: > On Tue, Jan 12, 2010 at 9:56 PM, Gökhan Sever > wrote: > > What could be causing this discrepancy? Is there any way to use an > > alternative PS creator with MPL? or an option to increase e.g. bits per > > pixel

Re: [Matplotlib-users] Simple text style question

2010-01-12 Thread Gökhan Sever
se an alternative PS creator with MPL? or an option to increase e.g. bits per pixel option somewhere in the configuration? Thanks. On Tue, Jan 12, 2010 at 2:52 PM, Gökhan Sever wrote: > > > On Tue, Jan 12, 2010 at 2:46 PM, Jae-Joon Lee wrote: > >> On Mon, Jan 11, 2010 at 3:20 PM,

Re: [Matplotlib-users] Simple text style question

2010-01-12 Thread Gökhan Sever
On Tue, Jan 12, 2010 at 2:46 PM, Jae-Joon Lee wrote: > On Mon, Jan 11, 2010 at 3:20 PM, Gökhan Sever > wrote: > > Another thing I noted in these images, Qt4Agg produced one looks much > > prettier to my eyes than the PS. What could be causing the jiggly > rendering >

Re: [Matplotlib-users] Simple text style question

2010-01-11 Thread Gökhan Sever
ate") multiple times with different > colors with fine-tuned text positions. > > FYI, It is possible to have two (or more) text instances of different > colors packed together (somewhat similar to this example > > http://matplotlib.sourceforge.net/plot_directive/users/plotting/examp

Re: [Matplotlib-users] Simple text style question

2010-01-11 Thread Gökhan Sever
Gökhan, > > Do you have usetex=True set? If so, have you tried the LaTeX command > sequence \color{red}{Red text goes here} ? > > Regards, > -- Damon > > -- > Damon McDougall > Mathematics Institute > University of Warwick > Coventry &

[Matplotlib-users] Simple text style question

2010-01-10 Thread Gökhan Sever
Hello, Is there a way to color words differently in a label or title, for example: ylabel("measurement 1 (in red color)" , "measurement 2 (in blue color)") to match with the plotted line colors? Thanks. -- Gökhan -- Th

Re: [Matplotlib-users] Best practices for organizing plotting code? (Greg Novak)

2009-12-22 Thread Gökhan Sever
On Tue, Dec 22, 2009 at 7:17 AM, Ghose, Kaushik < kaushik_gh...@hms.harvard.edu> wrote: > Hi, > > Regarding Greg´s post about how to organize plotting code for data. This is > a common issue encountered regardless of who collected the data or how the > data was generated. I´m an experimental neuro

Re: [Matplotlib-users] [matplotlib] change yticks-format

2009-12-11 Thread Gökhan Sever
On Fri, Dec 11, 2009 at 11:06 AM, Manuel Wittchen wrote: > Hi, > > When I plot very tiny datavalues (biggest value is 8e-7) the yticks > are also very small numbers with lots of digits (e.g. 0.02). So > the ylabel isn't visible any more. > To make the ylabel visible again I would like to chan

Re: [Matplotlib-users] legend and symbols

2009-11-30 Thread Gökhan Sever
On Mon, Nov 30, 2009 at 4:26 AM, Oliver Tomic wrote: > Hi, > > I am not sure whether this has been reported before or maybe even got fixed > already. When I make scatter plot and plot a point with marker = 'o' it > appears as a circle in the plot as it should. It won't, however, appear in > the le

Re: [Matplotlib-users] axis on top for barh plot

2009-11-27 Thread Gökhan Sever
On Fri, Nov 27, 2009 at 5:17 PM, Mike Anderson wrote: > Hi, > > How can I put the bottom axis on top (or on top AND on bottom) for a barh > plot? > > I'm trying to mimic this, made with gnuplot: > > http://www.hep.wisc.edu/cms/comp/cmsprod/dCacheUserUsage.png > > within matplotlib, and I've come

Re: [Matplotlib-users] Are nested axes possible?

2009-11-16 Thread Gökhan Sever
On Mon, Nov 16, 2009 at 2:30 PM, John Didion wrote: > > > I am trying to generate a figure of some genomic data. Basically, I want to > show how many times a certain event happens within each one megabase window > of each chromosome. The X axis is the chromosomal position (unit is > megabases) an

Re: [Matplotlib-users] loadtxt/usecols -> list index out of range

2009-11-16 Thread Gökhan Sever
On Mon, Nov 16, 2009 at 4:34 PM, Manuel Wittchen wrote: > Hi, > > I'm trying to make my first matplotlib-plot from a datafile. The > datafile is tab-separated and looks like this: > # x-axisy-axis > 0 1 > 1 2 > 2 3 > 3 4 > 4 5 > 5 6 > > So my ploting-scr

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-13 Thread Gökhan Sever
our favorite pdf editor. I am sure Jae-Jeon has a better explanation for this. > > fig = plt.figure(figsize=(5, 5), dpi=300) > setup_axes(fig, labelpad=2) > x = range(1, 11) > y = [5000, 900, 600, 500, 200, 110, 50, 20, 10, 5] > plt.plot(x, y, linewidth=1.5, c='k') &

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-13 Thread Gökhan Sever
On Fri, Nov 13, 2009 at 12:36 PM, per freem wrote: > hi all, > > how can the space between the label (e.g. thing created by > plt.xlabel('mylabel')) and the axes be adjusted? i am not talking > about the space between the ticklabels of the axes and the axes > themselves (which is set by 'xtick.ma

Re: [Matplotlib-users] bug in set_yscale of bar graphs?

2009-11-11 Thread Gökhan Sever
On Wed, Nov 11, 2009 at 4:25 PM, per freem wrote: > hi all, > > I am trying to make a simple bar graph that has its yaxis scale set to > log.  I use the following code: > > import matplotlib > matplotlib.use('PDF') > import matplotlib.pyplot as plt > from matplotlib import rc > rc('font',**{'famil

Re: [Matplotlib-users] [Numpy-discussion] parsing tab separated files into dictionaries - alternative to genfromtxt?

2009-11-11 Thread Gökhan Sever
On Wed, Nov 11, 2009 at 11:53 AM, per freem wrote: > hi all, > > i've been using genfromtxt to parse tab separated files for plotting > purposes in matplotlib. the problem is that genfromtxt seems to give > only two ways to access the contents of the file: one is by column, > where you can use: >

Re: [Matplotlib-users] Movable Legend

2009-10-28 Thread Gökhan Sever
This movable legend is a good idea on plots, especially if there are many elements on one figure. However a few notes that I would like to add: 1-) So many lines of code. Makes it hard to read when I share the code with someone else. Would be so much better to have a functionality like: plt.legend

Re: [Matplotlib-users] [Numpy-discussion] Using matplotlib's prctile on masked arrays

2009-10-28 Thread Gökhan Sever
On Tue, Oct 27, 2009 at 8:25 AM, wrote: > This should not be the correct results if you use > scipy.stats.scoreatpercentile, > it doesn't have correct missing value handling, it treats nans or > mask/fill values as regular numbers sorted to the end. > > stats.mstats.scoreatpercentile is the corr

Re: [Matplotlib-users] Plot a matrix in one command?

2009-10-27 Thread Gökhan Sever
2009/10/27 Piter_ > Hi all. > I have a matrix M: > First column is X ans the rest are Ys. Lets say 100 of them (1000 > sometimes). > So far I can plot it like > plot(M(:,1), M(:,2),M(:,1),M(:,3)... and so on and so on) > Is there any possibility to do it in matlab way? Like: > You can't index a

[Matplotlib-users] Using matplotlib's prctile on masked arrays

2009-10-27 Thread Gökhan Sever
Hello, Consider this sample two columns of data: 99. 99. 99. 99. 99. 99. 99. 1693.9069 99. 1676.1059 99. 1621.5875 651.8040 1542.1373 691.0138 1650.4214 678.5558 1710.7311 621.577

Re: [Matplotlib-users] Possible to get four y axes on a single plot?

2009-10-24 Thread Gökhan Sever
On Sat, Oct 24, 2009 at 1:02 PM, Dr. Phillip M. Feldman < pfeld...@verizon.net> wrote: > > I'd like to create a plot showing motor current, efficiency, speed, and > output power versus input power, with all four curves on a single plot and > four y axes. I've looked at the example in > http://matp

Re: [Matplotlib-users] How to rotate label on a twin axes

2009-10-23 Thread Gökhan Sever
el.set_rotation(270) > > Meanwhile, use may use something like below, > > pary.axis["right"].get_helper()._label_angles["right"]=270 > > Regards, > > -JJ > > > > On Fri, Oct 23, 2009 at 2:13 PM, Gökhan Sever > wrote: > > Hello, > &

[Matplotlib-users] How to rotate label on a twin axes

2009-10-23 Thread Gökhan Sever
Hello, One more figure and one more question. http://img263.imageshack.us/img263/6454/labelrotation.png I want to rotate the 2nd y-axis label "Air Temperature" upside down in other words rotating 180 degree while A staying up. Unfortunately set_rotation method is not available to a SubplotHost in

Re: [Matplotlib-users] Making mathtex output look nicer

2009-10-23 Thread Gökhan Sever
stically, we probably need to > make two passes with the mathtext parser to determine spacing. > > A workaround is to use the \hspace command: > > r"[#/$cm^3\hspace{-0.3}$]" > > Mike > > > On 10/23/2009 09:44 AM, Gökhan Sever wrote: > > Hello, > &

[Matplotlib-users] Making mathtex output look nicer

2009-10-23 Thread Gökhan Sever
Hello, Not that I like asking the same question again and again, but I just couldn't find a way to fix one annoyance on my figures when I use mathtex formatted labels. Here is one example figure: http://img14.imageshack.us/img14/4443/mathtex.png # Set the label host.set_ylabel(r"DMT CCN Concentra

Re: [Matplotlib-users] What about providing a chm version of the API

2009-10-22 Thread Gökhan Sever
On Thu, Oct 22, 2009 at 8:55 AM, clarknie wrote: > I mean, it's quite time-consuming to find the function I want on the net > > and the pdf version is not so convenient as the chm version. Anybody any > idea? > > > Alternatively, you can check-out the source copy and build your own documentation

Re: [Matplotlib-users] plotting normalized histograms

2009-10-17 Thread Gökhan Sever
On Fri, Oct 16, 2009 at 7:04 PM, per freem wrote: > hi all, > > i have a matrix of data and i would like to make a set of subplots, > each subplot with a histgram of one of the columns of the data. the > dataset is an Nx4 matrix containing only numbers between 0 and 1. > > i plot it like this: >

Re: [Matplotlib-users] sharing labels and legends across subplots

2009-10-11 Thread Gökhan Sever
On Sun, Oct 11, 2009 at 9:07 AM, per freem wrote: > hi all, > > i am trying to share both an axis label (but not the entire axis) and > a figure legend across a set of subplots. that is, i'd like to have a > figure where there is a major enlarged ylabel that is meant to label > the entire row of

Re: [Matplotlib-users] Names in boxplot x axis

2009-10-09 Thread Gökhan Sever
On Fri, Oct 9, 2009 at 10:41 AM, Renato Alves wrote: > Hi everyone, > > I've been using matplotlib for a while but mostly using the pyplot > functions and going as far as changing their initial input parameters. > > Now I need to make a boxplot and include names on the X axis as opposed > to the d

Re: [Matplotlib-users] Hiding data via legend

2009-10-04 Thread Gökhan Sever
Hello, Are there any opinions how to make this legend picking work after a zoom or pan event? There is no way to bring the cursor into its beginning shape and therefore non of the clicking works as expected. On Sun, Oct 4, 2009 at 9:37 AM, Peter Butterworth wrote: > Hi, > > I am a bit surprised

Re: [Matplotlib-users] loglog plot

2009-10-03 Thread Gökhan Sever
s() to get new ticks as well as grids. Do you know how to make ticklabels like 5x10^2 etc...? This I couldn't figure yet. On Wed, Sep 16, 2009 at 2:25 PM, Gökhan Sever wrote: > > > On Tue, Sep 15, 2009 at 1:24 AM, redrum wrote: > >> >> Hi, >> >> I have

Re: [Matplotlib-users] Best way to plot a 2d histogram?

2009-10-01 Thread Gökhan Sever
On Thu, Oct 1, 2009 at 5:29 PM, Ernest Adrogué wrote: > Hello all, > > What is the best way to plot a 2d histogram? > (Note that a 2d histogram is a histogram of a bivariate variable, > so it's got to be a 3d plot.) > > Ideally, it should look somewhat like this: > http://www.desy.de/~mraue/public

Re: [Matplotlib-users] Simplified version of double-axis time example (beta)

2009-09-28 Thread Gökhan Sever
There is On Sun, Sep 27, 2009 at 8:49 PM, Gökhan Sever wrote: > > > On Sun, Sep 27, 2009 at 7:44 PM, Jae-Joon Lee wrote: > >> On Sun, Sep 27, 2009 at 4:18 PM, Gökhan Sever >> wrote: >> > When I run this as it is, and zoom once the top x-axis ticklabe

Re: [Matplotlib-users] [Numpy-discussion] glumpy: fast OpenGL numpy visualization + matplotlib integration

2009-09-28 Thread Gökhan Sever
On Mon, Sep 28, 2009 at 9:06 AM, Nicolas Rougier wrote: > > Hi all, > > glumpy is a fast OpenGL visualization tool for numpy arrays coded on > top of pyglet (http://www.pyglet.org/). The package contains many > demos showing basic usage as well as integration with matplotlib. As a > reference, the

Re: [Matplotlib-users] Simplified version of double-axis time example (beta)

2009-09-27 Thread Gökhan Sever
On Sun, Sep 27, 2009 at 7:44 PM, Jae-Joon Lee wrote: > On Sun, Sep 27, 2009 at 4:18 PM, Gökhan Sever > wrote: > > When I run this as it is, and zoom once the top x-axis ticklabels > disappear: > > http://img2.imageshack.us/img2/5493/zoom1.png > > > > A

Re: [Matplotlib-users] Gradient color on a line object

2009-09-27 Thread Gökhan Sever
n tackle the second one easily. Thanks for the advice and pointers :) > > Regards, > > -JJ > > > > > On Sun, Sep 27, 2009 at 2:25 AM, Gökhan Sever > wrote: > > > > > > On Sat, Sep 26, 2009 at 10:16 PM, Jae-Joon Lee > wrote: > >> > &g

Re: [Matplotlib-users] Simplified version of double-axis time example (beta)

2009-09-27 Thread Gökhan Sever
t.set_ylabel("Random Data 1") > >> par.set_ylabel("Random Data 2") > >> par.axis["right"].label.set_visible(True) > >> > >> p1, = host.plot(time, ydata1) > >> p2, = par.plot(time, ydata2) > >> > >> host.axi

Re: [Matplotlib-users] Simplified version of double-axis time example (beta)

2009-09-27 Thread Gökhan Sever
t; p2, = par.plot(time, ydata2) > > host.axis["left"].label.set_color(p1.get_color()) > par.axis["right"].label.set_color(p2.get_color()) > > host.axis["bottom"].label.set_size(16) > host.axis["left"].label.set_size(16) > par.axis["right&

[Matplotlib-users] Simplified version of double-axis time example (beta)

2009-09-27 Thread Gökhan Sever
Hello, As was suggested by Jae-Joon, I have simplified the code for easier investigation and run. The aim of the script is to have time represented on both bottom and top x-axes, on the bottom in seconds-from-midnight (SFM), and the top should show as HH:MM:SS, while there is two different data so

Re: [Matplotlib-users] Gradient color on a line object

2009-09-26 Thread Gökhan Sever
y. > > -JJ > > > On Sat, Sep 26, 2009 at 10:27 PM, Gökhan Sever > wrote: > > Hello, > > > > Is it possible use a gradient color say from blue to red and/or > specifying > > certain color threshold for a line plot (i.e I have air temperature > plotted &

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
On Sat, Sep 26, 2009 at 11:14 PM, Jae-Joon Lee wrote: > On Sat, Sep 26, 2009 at 11:10 PM, Gökhan Sever > wrote: > > To run the code, you have to get nasafile.py and add this into your > > PYTHONPATH, later get dccn_plot.py and > > 09_03_26_11_36_15.dmtccnc.combined.raw f

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
On Sat, Sep 26, 2009 at 9:58 PM, Jae-Joon Lee wrote: > As specified in the doc > > > http://matplotlib.sourceforge.net/api/axis_api.html?highlight=get_majorticklabels#matplotlib.axis.Axis.get_majorticklabels > > it returns a list of Text instances. You may use > > > http://matplotlib.sourceforge.

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
On Sat, Sep 26, 2009 at 9:50 PM, Jae-Joon Lee wrote: > On Fri, Sep 25, 2009 at 1:14 AM, Gökhan Sever > wrote: > > With twin and proper Affine2D transformation I could not make the > secondary > > y-axis data being shown on the figure. > > Please post a simple, compl

[Matplotlib-users] Gradient color on a line object

2009-09-26 Thread Gökhan Sever
Hello, Is it possible use a gradient color say from blue to red and/or specifying certain color threshold for a line plot (i.e I have air temperature plotted and I want to segment the color of the plot for temp > 0C red, and below 0 make it blue.) Would be much nicer with gradient however I am co

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
this. Thank you. On Fri, Sep 25, 2009 at 11:45 AM, Gökhan Sever wrote: > > > On Fri, Sep 25, 2009 at 6:52 AM, John Hunter wrote: > >> On Thu, Sep 24, 2009 at 3:29 PM, Gökhan Sever >> wrote: >> > Hello, >> > >> > One easy one harder two question

Re: [Matplotlib-users] Two questions...

2009-09-25 Thread Gökhan Sever
On Fri, Sep 25, 2009 at 6:52 AM, John Hunter wrote: > On Thu, Sep 24, 2009 at 3:29 PM, Gökhan Sever > wrote: > > Hello, > > > > One easy one harder two questions :) > > > > My screenshot http://img213.imageshack.us/img213/3443/snapshot5.png > > >

Re: [Matplotlib-users] interactive python session with matplotlib

2009-09-24 Thread Gökhan Sever
On Thu, Sep 24, 2009 at 10:47 PM, Andre Walker-Loud wrote: > IPython can remedy all your wonderings :) > > http://matplotlib.sourceforge.net/users/shell.html > > -- > Gökhan > > > Hi Gökhan, > > I am not very familiar with iPython (I am not opposed to learning either). > > What I have in mind is w

Re: [Matplotlib-users] Two questions...

2009-09-24 Thread Gökhan Sever
Thanks Jae-Joon for your explanations. My second question has easily been solved after setting the label position. However, I am still stuck snapping the axis pairs. I have two different scaled data sources. First three data (dccnConc, dccnConAmb, and dccnConSTP are plotted on the main host y-axi

Re: [Matplotlib-users] interactive python session with matplotlib

2009-09-24 Thread Gökhan Sever
On Thu, Sep 24, 2009 at 7:25 PM, Andre Walker-Loud wrote: > Hi All, > > I have what I think is a basic question. I want to have an > interactive python script/code which uses matplotlib. For example, > the script first asks what data set to use, then when received, it > does some analysis routin

[Matplotlib-users] Two questions...

2009-09-24 Thread Gökhan Sever
Hello, One easy one harder two questions :) My screenshot http://img213.imageshack.us/img213/3443/snapshot5.png 1-) I want to link bottom and top x axes as well as left and right y axes. For now on the x-axis xticks are the time in seconds from midnight, not sure how to add the secondary top x a

Re: [Matplotlib-users] matplotlib with eclipse: how to get a graph?

2009-09-24 Thread Gökhan Sever
: > Excellent. Many thanks.After all those years of using matplotlib, I > finally find a use for show() > Mark > > On Wed, Sep 23, 2009 at 11:02 PM, Gökhan Sever wrote: > >> >> >> On Wed, Sep 23, 2009 at 3:51 PM, Mark Bakker wrote: >> >>> Hello list, >>&

Re: [Matplotlib-users] matplotlib with eclipse: how to get a graph?

2009-09-23 Thread Gökhan Sever
On Wed, Sep 23, 2009 at 3:51 PM, Mark Bakker wrote: > Hello list, > I recently started using Eclipse with Pydev. I like it a lot but have not > been able to get interactive plotting going (which otherwise works fine). > > My file is simple: > > from pylab import * > > ion() > > plot([1,2,3]) > >

Re: [Matplotlib-users] pyplot.show

2009-09-18 Thread Gökhan Sever
Running IPython with -pylab or specifying the threading option? See more at http://ipython.scipy.org/doc/stable/html/interactive/reference.html?highlight=pylab On Sat, Sep 19, 2009 at 12:42 AM, Thomas Hrabe wrote: > > Hi, > > thank you for the quick reply. Unfortunately, none of both works fo

Re: [Matplotlib-users] Simple pattern recognition

2009-09-17 Thread Gökhan Sever
On Wed, Sep 16, 2009 at 10:46 PM, Tony S Yu wrote: > > On Sep 16, 2009, at 8:22 PM, Gökhan Sever wrote: > > Hello all, > > I want to be able to count predefined simple rectangle shapes on an image > as shown like in this one: > http://img7.imageshack.us/img7/2327/particle

[Matplotlib-users] Simple pattern recognition

2009-09-16 Thread Gökhan Sever
Hello all, I want to be able to count predefined simple rectangle shapes on an image as shown like in this one: http://img7.imageshack.us/img7/2327/particles.png Which is in my case to count all the blue pixels (they are ice-snow flake shadows in reality) in one of the column. What is the way to

Re: [Matplotlib-users] loglog plot

2009-09-16 Thread Gökhan Sever
On Tue, Sep 15, 2009 at 1:24 AM, redrum wrote: > > Hi, > > I have a few questions about the loglog plot : > > 1- Is there a way to a have axis format with real numbers rather than > numbers with exponent ? > > import matplotlib.pyplot as plt ax1 = plt.gca() ax1.yaxis.set_major_formatter(ticker.Fo

Re: [Matplotlib-users] incorrect boxplot?

2009-09-14 Thread Gökhan Sever
On Mon, Sep 14, 2009 at 3:45 PM, wrote: > Robert Kern wrote: > > prctile does not handle the case where the exact percentile lies between > two > > items. scoreatpercentile does. > > > > > > If mlab is supposed to be compatible with matlab, then isn't this a > problem? > > From matlab, version 7

Re: [Matplotlib-users] incorrect boxplot?

2009-09-14 Thread Gökhan Sever
On Mon, Sep 14, 2009 at 12:30 PM, wrote: > I tried the following (most output text is deleted): > > In [1]: ob1=[1,1,2,2,1,2,4,3,2,2,2,3,4,5,6,7,8,9,7,6,4,5,5] > In [2]: import matplotlib.pyplot as > plt > In [3]: > plt.figure() > In [4]: > plt.boxplot(ob1) > In [5]: > plt.savefig('test.png') > I

[Matplotlib-users] Questions regarding to the mathtex and tex usage

2009-09-14 Thread Gökhan Sever
Hello, I have two figures, one with mpl's mathtext and the other one with the latex as seen on the uploaded images: http://img10.imageshack.us/img10/9384/mathtext.png http://img188.imageshack.us/img188/5128/usetex.png 1-) How can I use the same fonts of mathtext figure (tick and label texts) o

[Matplotlib-users] Customizing yticks while log-scaled

2009-09-10 Thread Gökhan Sever
Hello, A new plot and two questions: http://img16.imageshack.us/img16/1759/logbarchart.png 1-) How to get nicely formatted yticks while will represent my data range (in Ax10^5 fashion 10^x works perfect as a defaul however couldn't figure out how to do this with number times 10^x)? An interestin

Re: [Matplotlib-users] Distorting X-axis on a barchart

2009-09-10 Thread Gökhan Sever
On Thu, Sep 10, 2009 at 2:29 PM, Gökhan Sever wrote: > Hello, > > I have a simple bar-chart seen at > http://img40.imageshack.us/img40/4889/barchart.png > > What is the way to plot each bar equally spaced apart from eachother? Any > simple way without defining custom tick

[Matplotlib-users] Distorting X-axis on a barchart

2009-09-10 Thread Gökhan Sever
Hello, I have a simple bar-chart seen at http://img40.imageshack.us/img40/4889/barchart.png What is the way to plot each bar equally spaced apart from eachother? Any simple way without defining custom ticks or manipulating the data? Homework season has just started here. Lots of matplotting to d

Re: [Matplotlib-users] Help plotting dates

2009-09-08 Thread Gökhan Sever
On Tue, Sep 8, 2009 at 7:45 AM, Armando Serrano Lombillo wrote: > Hello, I'm finding it a little difficult to make a plot with dates: > > I have an array with 2 columns. The first one is seconds since a certain > date (let's say 8th September, 8:00am). The second one is the variable I > want to p

Re: [Matplotlib-users] how do i get rid of the whitespace around this plot?

2009-08-28 Thread Gökhan Sever
Finetuning with axis(xmin=, xmax= , ymin= , ymax=) should yield a better looking result. You might use figure(frameon=False) for a transparent background. On Fri, Aug 28, 2009 at 1:59 PM, DEMOLISHOR! the Demolishor < destrooo...@gmail.com> wrote: > This is the result from a call to pyplot.pcolor

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Gökhan Sever
On Thu, Aug 6, 2009 at 12:02 PM, Jae-Joon Lee wrote: > > I'm not sure what exactly you're trying to do here. > > You mean something like this? > > > http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_collection.html > > The example uses EllipseCollection but scatter basically creat

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Gökhan Sever
["", ""]) > > -JJ > > > On Tue, Aug 4, 2009 at 4:51 PM, Gökhan Sever wrote: > > Hello, > > > > Could not get a legend shown on scatter function used plot: > > > > In [4]: a = rand(100) > > > > In [5]: b = rand(100)

[Matplotlib-users] No legend using scatter function

2009-08-04 Thread Gökhan Sever
Hello, Could not get a legend shown on scatter function used plot: In [4]: a = rand(100) In [5]: b = rand(100) In [22]: scatter(a,b, c=a, s=b, label="") Out[22]: In [23]: scatter(a,b, c=a*5, s=b*5, label="") Out[23]: In [24]: legend() at rev 7355. with Python 2.6 (r26:66714, Jun

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Gökhan Sever
On Tue, Aug 4, 2009 at 11:50 AM, John Hunter wrote: > On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever > wrote: > > Hello, > > > > I was wondering if it is possible to hide some data on figures using a > say > > right click option to any of the legend entry a

[Matplotlib-users] Hiding data via legend

2009-08-03 Thread Gökhan Sever
Hello, I was wondering if it is possible to hide some data on figures using a say right click option to any of the legend entry and make it temporarily hidden/visible to better analyse the rest of the data? Check this screenshot for example: http://img25.imageshack.us/img25/9427/datahiding.png

Re: [Matplotlib-users] Plot aesthetics

2009-08-03 Thread Gökhan Sever
On Mon, Aug 3, 2009 at 8:52 PM, Yang Zhang wrote: > Hi, recently I've been using the beautiful (and easy-to-use) pycha[1] > package for simple bar charts: > > http://img522.imageshack.us/img522/7139/tput.png > > So far, pycha is the closest thing I've found to Office 2007-caliber > aesthetics. H

Re: [Matplotlib-users] curve fitting

2009-07-29 Thread Gökhan SEVER
Have you seen this? http://zunzun.com/ *"Online Curve Fitting and Surface Fitting Web Site*" On Wed, Jul 29, 2009 at 6:16 AM, Bala subramanian wrote: > Friends, > > I have to define two equations and fit my data on to it. could someone > please give me some example on how to do curve fitting u

Re: [Matplotlib-users] Wireframe models in matplotlib

2009-07-28 Thread Gökhan SEVER
On Tue, Jul 28, 2009 at 1:29 PM, Nils Wagner wrote: > Hi all, > > is it possible to build wire-frame models with matplotlib > ? > > Any pointer would be appreciated. > > Thanks in advance > >Nils > > > http://en.wikipedia.org/wiki/Wire-frame_model > > >

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gökhan SEVER
For the 2nd one; To re-position the figure content you might use axis(xmin= , xmax= ) On Mon, Jul 27, 2009 at 3:06 PM, Gewton Jhames wrote: > Thanks everyone. Everything works perfectly. > Only a few things left: > >1. How to "trim the canvas" of the image generated? It's transparent, >

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gökhan SEVER
For the 5th one ;) figure(frameon=False) On Mon, Jul 27, 2009 at 8:26 AM, Gewton Jhames wrote: > Hello, would you help me in some design issues that I wish to put in my > matplotlib graph? > I want my graph look like the one that I'm attaching on this email: > > >- Change the Background-col

Re: [Matplotlib-users] problem with svn install

2009-07-22 Thread Gökhan SEVER
On Wed, Jul 22, 2009 at 11:47 AM, Jouni K. Seppänen wrote: > davide lasagna writes: > > > ImportError: > > /home/davide/partizione/matplotlib/lib/matplotlib/_path.so: failed to > > map segment from shared object: Operation not permitted > > > > Could it be that i've installed in the wrong direct

[Matplotlib-users] [OT] Question about the SVN repo

2009-07-16 Thread Gökhan SEVER
Hello, I have a little of the topic question. We have a project ( http://sourceforge.net/projects/adpaa/) setup in SF using the CVS. There when I look at the code submit logs: for instance: gsever committed patchset 219

Re: [Matplotlib-users] {axesgrid} - How to change fontsize on multiple labels?

2009-07-10 Thread Gökhan SEVER
On Fri, Jul 10, 2009 at 10:15 AM, Michael Droettboom wrote: > Gökhan SEVER wrote: > >> Your suggested work-arounds worked like a charming. See my before and >> after plots at the given links: >> >> http://img34.imageshack.us/img34/3899/dccnplot1.png >> h

Re: [Matplotlib-users] {axesgrid} - How to change fontsize on multiple labels?

2009-07-10 Thread Gökhan SEVER
On Thu, Jul 9, 2009 at 11:08 PM, Jae-Joon Lee wrote: > On Thu, Jul 9, 2009 at 12:40 AM, Gökhan SEVER > wrote: > > I have one tiny question left working on these figures; that is: how to > make > > mathtext font and a regular label font at the same size?

Re: [Matplotlib-users] {axesgrid} - How to change fontsize on multiple labels?

2009-07-08 Thread Gökhan SEVER
reporting the problems and I;ll try to fix them soon. > Regards, > > -JJ > > > > > On Wed, Jul 8, 2009 at 10:00 PM, Gökhan SEVER > wrote: > > Hello, > > > > I am using axes_grid toolkit to create multiple axes. The labels' colors > are > &g

[Matplotlib-users] {axesgrid} - How to change fontsize on multiple labels?

2009-07-08 Thread Gökhan SEVER
Hello, I am using axes_grid toolkit to create multiple axes. The labels' colors are nicely being updated, however size or fontsize has no effect on the resulting figure :( Are they functional, or is it something wrong with my implementation? Oh also I couldn't make the grids switched on my figures

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Gökhan SEVER
.split(')')[0])) > > anyway... thanks for all... I guess that the last minute panic is not > exactly the best strategy, as usual > > Pau > > 2009/7/5 Gökhan SEVER : > > On Sun, Jul 5, 2009 at 3:41 PM, Pau wrote: > >> > >> ok, I installed now scip

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Gökhan SEVER
On Sun, Jul 5, 2009 at 3:41 PM, Pau wrote: > ok, I installed now scipy > > Traceback (most recent call last): > File "./prova.py", line 14, in >y.append(int(line.split('(')[1].split(')')[0])) > IndexError: list index out of range > > what is out of range? > > sorry for the spamming... :( >

Re: [Matplotlib-users] ImportError: No module named mplot3d

2009-07-01 Thread Gökhan SEVER
On Wed, Jul 1, 2009 at 3:25 PM, David Paulsen wrote: > Script passed the previous error point, and a different error string this > time: > >  File "3D_line_plot_ex.py", line 32, in >    ax.add_collection3d(poly, zs=zs, zdir='y') > >  File > "/Library/Frameworks/Python.framework/Versions/4.2.30201/

Re: [Matplotlib-users] ImportError: No module named mplot3d

2009-07-01 Thread Gökhan SEVER
On Wed, Jul 1, 2009 at 9:55 AM, David Paulsen wrote: > Dear List, > > I tried running examples of 3D plots given from the matplotlib webpage, but > encountered the following error: > > > from mpl_toolkits.mplot3d import Axes3D > ImportError: No module named mplot3d > > I am using the enthought

Re: [Matplotlib-users] Zooming plot and transforms...

2009-06-29 Thread Gökhan SEVER
On Mon, Jun 29, 2009 at 7:39 AM, Fabrice Silva wrote: > Le lundi 29 juin 2009 à 07:51 -0400, Pierre GM a écrit : >> Check the plotting routines in scikits.timeseries >> (pytseries.sourceforge.net), there's some zooming functions that could >> get you started. > > Thanks to point to this scikit, but

Re: [Matplotlib-users] call gimp's autocrop function from python

2009-06-24 Thread Gökhan SEVER
On Wed, Jun 24, 2009 at 12:31 PM, Nils Wagner wrote: > > >> >> Could you please share your findings? I would also like to learn how to >> script Blender once I start get going on Gimp. >> > Finally I made it. Please find enclosed a solution. > > Cheers, > > Nils > Hey Nil

[Matplotlib-users] How not to see timezone on a xlabel?

2009-06-23 Thread Gökhan SEVER
Hello, As shown in this screenshot http://img195.imageshack.us/img195/9186/timeseries.png I am trying to plot a timeseries using mpl. There is a minute detail that bothers me. I couldn't figure out how to hide the timezone information on my xlabel (here is CST) After loading the data, I use mpl's

Re: [Matplotlib-users] [IPython-dev] [patch] IPython.set_trace() implemented

2009-06-23 Thread Gökhan SEVER
Note: Cross-posting on IPy devel and Matplotlib-users list. Hello, My 8 hours sleep have helped me solve the riddle of IPython pylab entry from a regular Python script. Although it is funky and experimental, it works just as I have been seeking it to work for months :) Here take a look at this

[Matplotlib-users] Visuals for linux file systems

2009-06-17 Thread Gökhan SEVER
For those who haven't seen the article on slashdot: A Visual Expedition Inside the Linux File Systems Some figures are highly eye-catching. Some of which I haven't seen in matplotlib gallery nor could be produced with. Gökhan -

Re: [Matplotlib-users] Quiver plot of a netcdf file

2009-06-11 Thread Gökhan SEVER
On Thu, Jun 11, 2009 at 1:09 PM, JPKay wrote: > > Hello, > I am trying to use matplotlib to create a quiver plot of a NetCDF file with > the extension .nc. The Netcdf file is a series of arrays that contain > information about the stress tensors on a globe. > > I am struggling to import the file

Re: [Matplotlib-users] Upgrading of 3D plotting in matplotlib- recent comments on web site.

2009-06-09 Thread Gökhan SEVER
On Tue, Jun 9, 2009 at 3:05 PM, Lou Pecora wrote: > > --- On *Tue, 6/9/09, Gökhan SEVER * wrote: > > Modified that section as to eliminate confusions: > > *> NOTE:* *Experimental work has been going on to integrate 3D plotting > functionality into matplotlib. Please

Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-09 Thread Gökhan SEVER
On Tue, Jun 9, 2009 at 1:00 PM, Esmail wrote: > Hi Gökhan, > > > Gökhan SEVER wrote: > > > > I'll give mayavi/mlab a try, I think there was a note to the > > effect that matplotlib quit supporting 3D plots and recommended > > mayavi. &g

Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-09 Thread Gökhan SEVER
On Tue, Jun 9, 2009 at 12:46 PM, Esmail wrote: > Sebastian Busch wrote: > > > > > > Hey Esmail, > > > > there was the possibility for 3D plots in matplotlib: > > http://www.scipy.org/Cookbook/Matplotlib/mplot3D > > > > however, the mayavi "mlab" interface was designed explicitly to be as > > simp

Re: [Matplotlib-users] [matplotlib-devel] The easiest way to check-out matplotlib source

2009-06-08 Thread Gökhan SEVER
On Mon, Jun 8, 2009 at 2:16 PM, John Hunter wrote: > On Mon, Jun 8, 2009 at 2:14 PM, Gökhan SEVER wrote: > > Hello, > > > > How do you add you automatically check-out new added files from > matplotlib > > trunk? Is there a specific svn command for this? > &g

[Matplotlib-users] The easiest way to check-out matplotlib source

2009-06-08 Thread Gökhan SEVER
Hello, How do you add you automatically check-out new added files from matplotlib trunk? Is there a specific svn command for this? Another question: For example IPython has uses bzr and when I issue bzr branch lp:ipython command I grab the latest development branch. I do a development installatio

Re: [Matplotlib-users] xlabel in two lines and centered

2009-06-05 Thread Gökhan SEVER
Hi, I sometimes create matplotlib plots without any labels on them -figures only. Then I add appropriate titles and/or labels using either MS Word or OO Writer. A few times used GIMP too to add additional texts. When I can't easily figure out things in matplotlib this method turns out helpful to

Re: [Matplotlib-users] Use text AS values for x-axis

2009-05-30 Thread Gökhan SEVER
ot; > Thanks, I KNEW it had to pretty simple. > > Gus > > On Sat, May 30, 2009 at 6:12 PM, Gökhan SEVER wrote: > >> Hey, >> >> Try this: >> >> plot([1,2,3]) >> locs, labels = xticks([0,1,2], ['Trial1', 'Trial2', 'Control&

Re: [Matplotlib-users] Use text AS values for x-axis

2009-05-30 Thread Gökhan SEVER
Hey, Try this: plot([1,2,3]) locs, labels = xticks([0,1,2], ['Trial1', 'Trial2', 'Control']) Gökhan On Sat, May 30, 2009 at 8:05 PM, W. Augustine Dunn III wrote: > I am sorry if this has been covered in teh archives or is RTFM-sh but I > looked in both places and am low on time. I want to us

Re: [Matplotlib-users] A request for code critique

2009-05-17 Thread Gökhan SEVER
he script loaded and call show() after each plot command. Please comment me if I am wrong... Gökhan On Sun, May 17, 2009 at 3:19 PM, Roy Hyunjin Han < starsareblueandfara...@gmail.com> wrote: > On Sun, May 17, 2009 at 2:17 PM, Gökhan SEVER > wrote: > > Hello Roy, > >

<    1   2   3   4   >