Re: [Matplotlib-users] Dashed line step plot

2010-09-19 Thread Gökhan Sever
On Sat, Sep 18, 2010 at 1:03 PM, Benjamin Root ben.r...@ou.edu wrote: I'll admit that I am not very familiar with how these step plots are done. Maybe it should be the 'drawstyle' kwarg that should be over-riden, not 'linestyle'? Ben Root This seems like more reasonable to me. When I

Re: [Matplotlib-users] Dashed line step plot

2010-09-18 Thread Gökhan Sever
On Fri, Sep 17, 2010 at 8:59 PM, Benjamin Root ben.r...@ou.edu wrote: Not a bug, but a feature. In step(), the 'linestyle' kwarg gets over-ridden with a value of 'steps-' + kwargs['where']. Ben Root Hard to interpret that way at the first look. This does what I want: plt.plot(range(10),

[Matplotlib-users] Dashed line step plot

2010-09-17 Thread Gökhan Sever
Hello, Can someone confirm me if this creates a dashed line for a simple step plot? # this is fine plt.plot(range(10), g--) # plots solid line! plt.step(range(10), g--) Thanks, -- Gökhan -- Start uncovering the many

Re: [Matplotlib-users] legend font color

2010-09-17 Thread Gökhan Sever
On Fri, Sep 17, 2010 at 1:13 PM, musik xi.xiaoxi...@gmail.com wrote: Is there a way to set the legend font color? I am plotting multiple sets of data using different colors. I basically want to set each legend font color the same as the corresponding data line color. Here is an example. x =

Re: [Matplotlib-users] Dashed line step plot

2010-09-17 Thread Gökhan Sever
On Fri, Sep 17, 2010 at 3:34 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, Can someone confirm me if this creates a dashed line for a simple step plot? # this is fine plt.plot(range(10), g--) # plots solid line! plt.step(range(10), g--) Thanks, -- Gökhan My version

[Matplotlib-users] matplotlib import warning

2010-09-08 Thread Gökhan Sever
Hello, My usual ipython -pylab is giving me these warnings after I installed matplotlib from the source (matplotlib rev.8624 using python setupegg.py develop). /usr/lib/python2.6/site-packages/EPDLab-3.0.1.dev_r24658-py2.6.egg/enthought/__init__.py:7: UserWarning: Module dateutil was already

Re: [Matplotlib-users] matplotlib import warning

2010-09-08 Thread Gökhan Sever
-c import matplotlib -Aman On Wed, Sep 8, 2010 at 12:17 PM, Gökhan Sever gokhanse...@gmail.comwrote: Hello, My usual ipython -pylab is giving me these warnings after I installed matplotlib from the source (matplotlib rev.8624 using python setupegg.py develop). /usr/lib/python2.6/site

Re: [Matplotlib-users] Reduce image size

2010-08-30 Thread Gökhan Sever
On Mon, Aug 30, 2010 at 4:36 PM, Jeremy Conlin jlcon...@gmail.com wrote: I have a matplotlib plot that I saved to a pdf image. The plot consists of 1E5 dots plotted with varying colors and opacities. Actually 1E5 black dots with varying opacities and 64 colored markers. The trouble is my

Re: [Matplotlib-users] online plotting site using MPL ?

2010-07-29 Thread Gökhan Sever
On Thu, Jul 29, 2010 at 2:02 PM, Gary Pajer gary.pa...@gmail.com wrote: I recall that there is an site online that produces all kinds of plots using mpl to render them. It has a name something like zumzum. Does anyone know what I'm talking about (and can you point me there?) thx, gary

Re: [Matplotlib-users] Question?

2010-06-08 Thread Gökhan Sever
On Tue, Jun 8, 2010 at 10:19 AM, Waléria Antunes David waleriantu...@gmail.com wrote: Hello!!! My name is Waleria. I work at INPE in Sao Jose dos Campos, Brazil. And I'd like to make a question. I'm in trouble to generate a two functions graph. I have a problem to generate a graph of the

Re: [Matplotlib-users] Question?

2010-06-08 Thread Gökhan Sever
On Tue, Jun 8, 2010 at 2:05 PM, Waléria Antunes David waleriantu...@gmail.com wrote: no, I think, did not understand my functions.seei made a change my second function in the attached. You can further simplify your function. Try grouping 10 powers under one term. You can then

[Matplotlib-users] Unicode question

2010-05-08 Thread Gökhan Sever
Hello, I have tendency to use unicode strings for my simple units e.g. plt.xlabel(uConcentration (# cm⁻³)) Wondering if it is possible to subscript and/or superscript any character in unicode strings? In other words could the following be done via unicode only? plt.title(rN$_{ccn} = C s^k$)

Re: [Matplotlib-users] Problem with figure sizes using Qt4Agg

2010-05-04 Thread Gökhan Sever
On Mon, May 3, 2010 at 4:02 PM, Darren Dale dsdal...@gmail.com wrote: I got a suggestion at the PyQt4 mailing list, and the following patch appears to resolve the problem. Darren Thanks Darren. Your patch fixes the wrong sized figure creation problem. Both for WXAgg and Qt4Agg the maximum

Re: [Matplotlib-users] mathtext is smaller than regular text

2010-04-27 Thread Gökhan Sever
On Tue, Apr 27, 2010 at 3:31 AM, Konstantin Klementiev kklement...@cells.es wrote: Hello all, Does anyone know why mathtext is smaller than the regular text in the same string? For example, see http://matplotlib.sourceforge.net/users/text_intro.html (equation E=mc^2) How can I make it of

[Matplotlib-users] Publication quality plots in papers

2010-04-27 Thread Gökhan Sever
Hello, This is a question mostly for non-Latex users. What is your preferred saving format from matplotlib that you use in OpenOffice or a similar open office tool? A format that looks good on both screen and printed output. In my experiences so far I have found getting the best quality outputs

Re: [Matplotlib-users] Publication quality plots in papers

2010-04-27 Thread Gökhan Sever
… -paul h. *From:* Gökhan Sever [mailto:gokhanse...@gmail.com] *Sent:* Tuesday, April 27, 2010 8:53 AM *To:* Matplotlib Users *Subject:* [Matplotlib-users] Publication quality plots in papers Hello, This is a question mostly for non-Latex users. What is your preferred saving format from

Re: [Matplotlib-users] Publication quality plots in papers

2010-04-27 Thread Gökhan Sever
On Tue, Apr 27, 2010 at 11:23 AM, Konstantin Klementiev kklement...@cells.es wrote: I like to use png files at 300dpi. I'm stuck using MS Word 2007 at work, and that's what works best in my experience. If MS ever starts to support svg files. Or matplotlib starts to support emf-files... ;)

Re: [Matplotlib-users] Publication quality plots in papers

2010-04-27 Thread Gökhan Sever
this started with non-Latex, but I've found that passing around latex-generated PDFs works well to get reviews from non-Latex people. But then again, the people I work with don't rely upon MS Office's electronic editing capabilities. Ryan On Tue, Apr 27, 2010 at 12:43 PM, Gökhan Sever gokhanse

Re: [Matplotlib-users] Publication quality plots in papers

2010-04-27 Thread Gökhan Sever
in the revision tracked latex document. Ryan On Tue, Apr 27, 2010 at 4:18 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hi Ryan, What is your typical reviewing process? Do you ask people to review on PDF outputs or via version controlled Latex document? OpenOffice also has a good review system

Re: [Matplotlib-users] Can't turn-off ticks when sharing axis

2010-04-23 Thread Gökhan Sever
On Thu, Apr 22, 2010 at 7:38 PM, John Hunter jdh2...@gmail.com wrote: The standard trick is to make the ticklabels on one axes invisible for label in ax.get_xticklabels(): label.set_visible(False) JDH Thanks John, This answer seems familiar to me :) You have caught my intention

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-22 Thread Gökhan Sever
On Thu, Apr 22, 2010 at 3:25 AM, Matthias Michler matthiasmich...@gmx.netwrote: Hi Gökhan, with the attached test.py I generated the attached files 'pic?.png' and I'm sorry, I don't get the problem. For me ax.grid(False, which='majorminor') removes major and minor ticks on x- and y-axis.

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-22 Thread Gökhan Sever
On Thu, Apr 22, 2010 at 3:42 AM, Matthias Michler matthiasmich...@gmx.netwrote: Hi Gökhan, Just to make one point clear to me. Do you agree that the following is the expected behavior of your suggestion to use event.inaxes.grid(which='minormajor') after 'g'? If only the major tick grid

[Matplotlib-users] Can't turn-off ticks when sharing axis

2010-04-22 Thread Gökhan Sever
Hello, Consider my simple test case: import matplotlib.pyplot as plt fp = plt.figure() ax1 = fp.add_subplot(4,1,1) ax1.plot(range(10)) ax2 = fp.add_subplot(4,1,2) ax2.plot(range(10)) ax1.xaxis.set_major_locator (plt.NullLocator ()) ax3 = fp.add_subplot(4,1,3) ax3.plot(range(10)) # Can't turn

Re: [Matplotlib-users] legend: symbols is duplicated

2010-04-22 Thread Gökhan Sever
On Thu, Apr 22, 2010 at 4:44 PM, Carlos Grohmann carlos.grohm...@gmail.comwrote: Hi all, I'm getting this weird behavior of legend. I always get two symbols in front of the labels, instead of one. Did anyone experienced this before? I'm working with MPL in a WxPython app. code snippet:

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-21 Thread Gökhan Sever
On Tue, Apr 20, 2010 at 11:11 AM, Gökhan Sever gokhanse...@gmail.comwrote: On Tue, Apr 20, 2010 at 2:42 AM, Matthias Michler matthiasmich...@gmx.net wrote: Hi Gökhan, thanks for testing this small patch. Maybe one of the developers could submit it or should I place it on the patch

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-21 Thread Gökhan Sever
On Wed, Apr 21, 2010 at 4:39 AM, Matthias Michler matthiasmich...@gmx.netwrote: I think it works like expected, i.e. it toggles the state of showing grid lines for minor and major ticks. The problem it the case were people set only major tick grid lines ax.grid(True, which='major') and than

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-20 Thread Gökhan Sever
On Tue, Apr 20, 2010 at 2:42 AM, Matthias Michler matthiasmich...@gmx.netwrote: Hi Gökhan, thanks for testing this small patch. Maybe one of the developers could submit it or should I place it on the patch-tracker? Usually after some pinging someone picks up the code and commits in to the

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-19 Thread Gökhan Sever
On Mon, Apr 19, 2010 at 1:31 AM, Matthias Michler matthiasmich...@gmx.netwrote: On Sunday 18 April 2010 00:52:57 Gökhan Sever wrote: Hello, Let say we have a figure created by: plt.plot(range(100)) On WX backend plt.grid(1) or key G responds finely for turning on/off the grid

Re: [Matplotlib-users] Problem with figure sizes using Qt4Agg

2010-04-18 Thread Gökhan Sever
On Sun, Apr 18, 2010 at 11:47 AM, Darren Dale dsdal...@gmail.com wrote: On Tue, Apr 13, 2010 at 8:14 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, Could someone confirm me if there is any malfunctioning using these simple figure functions? plt.figure(figsize=(2,3

[Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-17 Thread Gökhan Sever
Hello, Let say we have a figure created by: plt.plot(range(100)) On WX backend plt.grid(1) or key G responds finely for turning on/off the grid lines. However when I log-scale both axes then plt.grid(1 or 0) or G doesn't respond on minor grid lines. Is there a way to control this behavior?

[Matplotlib-users] Problem with figure sizes using Qt4Agg

2010-04-13 Thread Gökhan Sever
Hello, Could someone confirm me if there is any malfunctioning using these simple figure functions? plt.figure(figsize=(2,3)) plt.figure(figsize=(5,6)) plt.figure(figsize=(9,15)) plt.figure(figsize=(19,5)) For some reason I can't get Qt4Agg creating last two figures in specified sizes.

Re: [Matplotlib-users] Custom y-axis

2010-04-06 Thread Gökhan Sever
On Tue, Apr 6, 2010 at 12:29 PM, Florian Lindner mailingli...@xgm.dewrote: Hello, my matter is a bit difficult to explain for me, I hope you get the picture. I want to (line) plot pressure and temperatur at different stations in an aircraft engine. The stations are labeled like 0, 1, 2, 22,

Re: [Matplotlib-users] Getting coordinates of the zoom rectangle

2010-04-05 Thread Gökhan Sever
On Mon, Apr 5, 2010 at 6:39 AM, Mauro Cavalcanti mauro...@gmail.com wrote: Dear ALL, Good morning... Here is a question that may already have been asked (and answered), but not to my knowledge. Matplotlib's figure windows come with that handy navigation bar, which includes a Pan/Zoom button

Re: [Matplotlib-users] Getting coordinates of the zoom rectangle

2010-04-05 Thread Gökhan Sever
the actual source .../lib/matplotlib/widgets.py. Classes are methods are nicely documented. I would suggest you to use IPython to access the docstrings with ease. import matplotlib.widgets as w w? w.TAB Best regards, 2010/4/5 Gökhan Sever gokhanse...@gmail.com: On Mon, Apr 5, 2010 at 6:39

Re: [Matplotlib-users] speed up imports?

2010-04-02 Thread Gökhan Sever
On Fri, Apr 2, 2010 at 8:28 AM, Michael Droettboom md...@stsci.edu wrote: My gut says it's probably the GUI framework import that is dominating the time. Which backend are you using? Does importing it take a large amount of time as well? Can you provide a profiler output file we can

Re: [Matplotlib-users] speed up imports?

2010-04-01 Thread Gökhan Sever
On Thu, Apr 1, 2010 at 7:57 PM, C M cmpyt...@gmail.com wrote: On Thu, Apr 1, 2010 at 7:17 PM, Eric Firing efir...@hawaii.edu wrote: Andrew Kelly wrote: Has anyone had any success in speeding up the mpl imports? import matplotlib.pyplot as plt ( or from matplotlib.figure import Figure)

Re: [Matplotlib-users] downloadable docs?

2010-04-01 Thread Gökhan Sever
On Thu, Apr 1, 2010 at 6:04 PM, Stuart McGraw smcg4...@frii.com wrote: I live in a third world part of the US where internet access is via modem so reading the matplotlib docs via the internet very painful. A full afternoon trying to build the docs was unsuccessful. Is there anyplace where

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Gökhan Sever
On Mon, Mar 29, 2010 at 10:20 PM, rachel-mikel_arcejae...@hmc.edu wrote: Hello, This is my first time trying out this list, so please forgive me if I've doing this wrong. I'm trying to create a plot that has its origin in the upper-left hand corner, rather than the lower-left hand corner.

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Gökhan Sever
On Tue, Mar 30, 2010 at 2:37 PM, Ryan May rma...@gmail.com wrote: You're looking for the set_ticks_position method on the xaxis (I've also tweaked setting the limits): plt.plot(xcoords, ycoords, 'ro') plt.xlim(0, maxX) plt.ylim(maxY, 0) ax = plt.gca() # Get current axes object

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Gökhan Sever
On Tue, Mar 30, 2010 at 3:17 PM, Ryan May rma...@gmail.com wrote: According to the docstring, it only puts ticks in both locations, not labels, which is what I'm seeing here on SVN with the PyGTK backend. Are you seeing something different? Yes, same here. It is just a bit unexpected

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 3:06 AM, konstellationen konstellatio...@gmail.comwrote: Hi, I am making plots for a publication using matplotlib which requires the use of heavy fonts. I am rendering text in the graph with Latex, which has a limited capability to make fonts more heavy. I partially

Re: [Matplotlib-users] unconnected points

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 3:23 AM, Ruben Moor ruben.m...@gmail.com wrote: Hello, I use the following plot command plot(tdata, vdata, '.-') with an unexpected result (s. attached png). Some points are not connected. If I plot with linestyle '-' you can't even see them. Is that a known issue

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 12:42 PM, konstellationen konstellatio...@gmail.com wrote: You can try: xticklabels = getp(gca(), 'xticklabels') yticklabels = getp(gca(), 'yticklabels') setp(xticklabels, fontsize=14, weight='bold') setp(yticklabels, fontsize=14, weight='bold') I've tried this,

Re: [Matplotlib-users] [SciPy-User] milliseconds in matplotlib.dates?

2010-03-25 Thread Gökhan Sever
On Wed, Mar 24, 2010 at 1:25 PM, Tom Kuiper kui...@jpl.nasa.gov wrote: Greetings, everyone. I have some time tagged data spanning about three minutes with 4 ms resolution. If I plot these with plot_data and focus in on some event at high resolution I lose the tick marks. It seems that the

Re: [Matplotlib-users] [SciPy-User] milliseconds in matplotlib.dates?

2010-03-25 Thread Gökhan Sever
On Thu, Mar 25, 2010 at 4:17 PM, Tom Kuiper kui...@jpl.nasa.gov wrote: Date: Thu, 25 Mar 2010 13:17:01 -0500 From: G?khan Sever gokhanse...@gmail.com Subject: Re: [SciPy-User] milliseconds in matplotlib.dates? To: SciPy Users List scipy-u...@scipy.org Cc: Matplotlib Users

Re: [Matplotlib-users] Sharing axes on multiple subplots

2010-03-23 Thread Gökhan Sever
)) Regards, -JJ On Mon, Mar 22, 2010 at 1:18 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, I am testing the newly added subplots function in ipython -pylab with the following code: f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2,2, sharey=True) ax1.plot(np.random.random(20)) ax2

Re: [Matplotlib-users] ValueError: x and y must have same first dimension

2010-03-21 Thread Gökhan Sever
On Sun, Mar 21, 2010 at 1:57 PM, AG computing.acco...@googlemail.comwrote: Hi List I cannot figure out how to satisfy this issue to resolve the ValueError: x and y must have same first dimension. This is the relevant code: [code] for i in range( 0, time + 1 ): outflow = constant *

Re: [Matplotlib-users] toolbar

2010-03-20 Thread Gökhan Sever
On Sat, Mar 20, 2010 at 6:06 PM, butterw butt...@gmail.com wrote: Is there an minimal example file available showing how to activate this new plot toolbar ? changing the backend to Qt4Agg apparently is not sufficient. You need to install matplotlib from the svn trunk.

Re: [Matplotlib-users] toolbar

2010-03-20 Thread Gökhan Sever
to call it ? Le , Gökhan Sever gokhanse...@gmail.com a écrit : On Sat, Mar 20, 2010 at 6:06 PM, butterw butt...@gmail.com wrote: Is there an minimal example file available showing how to activate this new plot toolbar ? changing the backend to Qt4Agg apparently

[Matplotlib-users] ask.scipy.org is online

2010-03-18 Thread Gökhan Sever
Hello, Please tolerate my impatience for being the first announcing the new discussion platform :) and my cross-posting over the lists. The new site is beating at ask.scipy.org . David Warde-Farley is moving the questions from the old-site at advice.mechanicalkern.com (announced at SciPy09 by

Re: [Matplotlib-users] toolbar

2010-03-18 Thread Gökhan Sever
On Thu, Mar 18, 2010 at 7:01 AM, Philippe Crave philippe.cr...@gmail.comwrote: Hello, the following will display a figure with a plot. the figure will embed the classic toolbar. import matplotlib.pyplot as plt import numpy as np x=np.arange(0, 1, 0.1) fig = plt.figure() ax =

Re: [Matplotlib-users] Plot marker based on other value

2010-03-17 Thread Gökhan Sever
On Wed, Mar 17, 2010 at 9:29 PM, Vincent Davis vinc...@vincentdavis.netwrote: I am doing a fairly basic plot plot(ydata) but would like to condition the marker on another array, for example if I have ydata and markerdata then for markerdata 0 use use a '+' and for markerdata 0 use a '-' and

Re: [Matplotlib-users] Is there a maximum number of x tickmarks?

2010-03-16 Thread Gökhan Sever
On Tue, Mar 16, 2010 at 4:37 PM, Josh Hemann jhem...@vni.com wrote: I have an issue with showing more than 81 tick marks on an X axis and I am trying to determine a way around it. Background... I am plotting vectors in which each element represents a different variable and I really do want to

Re: [Matplotlib-users] [newbie] 2 problems: a) CJK, b) adding letters to points

2010-03-15 Thread Gökhan Sever
On Mon, Mar 15, 2010 at 6:18 PM, David ld...@gmx.net wrote: Hello everyone, I hope you can help me with two problems I am struggling with. The second question, I imagine, should be rather easy, but I wasn't able to figure it out by googling. a) My graph will have Chinese labels, however

[Matplotlib-users] Plotting data from serial stream

2010-03-12 Thread Gökhan Sever
Hello, I read a simple data stream from my computers serial port. I can nicely read the data using pyserial library but couldn't get it *nicely* working neither with WXAgg nor Qt4Agg using the following code. Although with WX I could get updated looks, the figure isn't very responsive in this

Re: [Matplotlib-users] 1d weighted histogram with log y-axis not colored correctly

2010-03-11 Thread Gökhan Sever
On Thu, Mar 11, 2010 at 2:41 PM, Craig the Demolishor destrooo...@gmail.com wrote: Hi folks, Lately I've been working with some data that is too copious to fit in memory, so I've had to write a wrapper for pyplot.hist that bins the data in chunks and then draws it like so:

Re: [Matplotlib-users] ipython -pylab

2010-03-09 Thread Gökhan Sever
On Tue, Mar 9, 2010 at 6:48 PM, Andre Walker-Loud walksl...@gmail.comwrote: Hi All, I am trying to understand exactly what the -pylab option does when I launch ipython -pylab - thought some folks here might know. For example, after executing ipython -pylab I can type either a =

Re: [Matplotlib-users] Runtime customization of plots

2010-03-02 Thread Gökhan Sever
On Tue, Mar 2, 2010 at 5:57 PM, Andrea Gavana andrea.gav...@gmail.comwrote: Hi All, I believe this question has been already asked in the past (I found something at http://old.nabble.com/A-good,-interactive-plotting-package-td15396445.html ). I use matplotlib extensively in our

Re: [Matplotlib-users] how to increase tick thickness

2010-03-01 Thread Gökhan Sever
On Mon, Mar 1, 2010 at 2:27 PM, Matthew MacLeod macl...@eefus.colorado.eduwrote: Dear matplolib users, I am wondering if anyone knows how to increase the tick thickness, that is the tick linewidth? Mine are too thin. Thanks Goekhan and JJ for the help previously on how to increase the tick

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-03-01 Thread Gökhan Sever
On Mon, Mar 1, 2010 at 8:36 AM, Michael Droettboom md...@stsci.edu wrote: Alan G Isaac wrote: Gökhan Sever wrote: For the second idea you mean something as generic as plotting such markers? plt.plot(range(10), linestyle='None', marker=u'※ ') On 3/1/2010 8:33 AM, Michael

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-02-26 Thread Gökhan Sever
. Mike Gökhan Sever wrote: On Fri, Jan 29, 2010 at 7:43 AM, Michael Droettboom md...@stsci.edumailto: md...@stsci.edu wrote: On 01/28/2010 08:08 PM, Gökhan Sever wrote: #!/usr/bin/python # -*- coding: utf-8 -*- from pylab import * plot([1]*5

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-02-26 Thread Gökhan Sever
as symbol markers -- plot(range(10), linestyle='None', marker=r'$\clubsuit$') We could support arbitrary (non-math) text, too, fairly easily. We just need to invent a syntax for it. Mike Gökhan Sever wrote: Thanks Mike. The Greek symbols become visible when I make the changes as you

Re: [Matplotlib-users] Change the size of the plotted 'o's ?

2010-02-26 Thread Gökhan Sever
On Fri, Feb 26, 2010 at 6:29 PM, mikey abc.mi...@googlemail.com wrote: Hi there, I've just made script for displaying discrete data clustered in boxes on my graph. The plots are plotted with plt.plot(x,y,'o') and the 'o's seem a reasonable size on screen but when I render it to file they

Re: [Matplotlib-users] Cannot draw bar chart with log scale

2010-02-25 Thread Gökhan Sever
On Thu, Feb 25, 2010 at 8:56 AM, afancy grou...@gmail.com wrote: Hi, I have some difficulty to use the log scale on bar chart. Could anybody help me, thanks in advace. Regards, afancy from matplotlib.font_manager import FontProperties data=((0.014, 0.512, 0.015, 0.161, 1.177, 6.793,

Re: [Matplotlib-users] boxplot bug

2010-02-24 Thread Gökhan Sever
attached diff). This simply allows you to over-ride the computation of box_y, med_y and the wisk_lo and wisk_hi, which are otherwise derived from the data. In other words, it allows you to ignore the data :-) Cheers - Ariel On Tue, Feb 23, 2010 at 3:15 PM, Gökhan Sever gokhanse

Re: [Matplotlib-users] How do I turn all ticks off?

2010-02-24 Thread Gökhan Sever
On Wed, Feb 24, 2010 at 8:48 PM, David Goldsmith d_l_goldsm...@yahoo.comwrote: Hi! Sorry for the really elementary Q's but I'm not having much luck searching the User Guide: How do I turn all ticks off (i.e., the labels and the tick mark lines, on both axes)? Thanks! DG Too dry but

Re: [Matplotlib-users] How to increase axis and tick linesize?

2010-02-24 Thread Gökhan Sever
On Wed, Feb 24, 2010 at 5:45 PM, Matthew MacLeod macl...@eefus.colorado.edu wrote: Dear matplotlib users, I have a problem with my plots, it is that the plot axes and the tick marks are too small, is there a way to increase the 'lineweight' and size of these basic features? I

Re: [Matplotlib-users] boxplot bug

2010-02-23 Thread Gökhan Sever
On Tue, Feb 23, 2010 at 3:02 PM, Ariel Rokem aro...@berkeley.edu wrote: Hi - more generally, is there any way to control the location of the median line, the vertical size of the box and the vertical location of the whiskers? Thanks - Ariel Aren't those generically calculated from the

Re: [Matplotlib-users] boxplot bug

2010-02-23 Thread Gökhan Sever
own pair. Don't get surprised if you see different results for different percentiles. See at http://old.nabble.com/incorrect-boxplot--td25440025.html Probably you don't seek something like boxplot's widths kw arg if I understand you right? On Tue, Feb 23, 2010 at 2:49 PM, Gökhan Sever gokhanse

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

2010-02-17 Thread Gökhan Sever
On Wed, Feb 17, 2010 at 9:28 AM, John Hunter jdh2...@gmail.com wrote: On Wed, Feb 17, 2010 at 9:06 AM, Matthias Michler matthiasmich...@gmx.net wrote: thanks a lot for taking the time to go through this patch. I tried to incorporate you remarks and attached a new patch. The most

Re: [Matplotlib-users] Easy come easy go

2010-02-15 Thread Gökhan Sever
On Sun, Feb 14, 2010 at 10:36 PM, David Arnold dwarnol...@suddenlink.netwrote: All, This example: http://matplotlib.sourceforge.net/examples/event_handling/keypress_demo.html Raises this exception o my Macbook when the key 's' is pressed: The debugged program raised the exception

Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib? (PUG)

2010-02-12 Thread Gökhan Sever
On Fri, Feb 12, 2010 at 10:37 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I'm beginning to read aboutPython OOP, classes, inheritance and the like. It seems like an understanding of those concepts is key to understanding how the import needs are met. -- Crime is way down. War is

Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib?

2010-02-09 Thread Gökhan Sever
On Tue, Feb 9, 2010 at 8:15 PM, Wayne Watson sierra_mtnv...@sbcglobal.netwrote: Subject is the question. As I see it, it's useful to know MatLab. A simple query with matplotlib tutorial shows a number of hits. The first, reference to v0.99.a documentation barely qualifies. Examples galore

Re: [Matplotlib-users] using subscripts and tex in labels

2010-01-31 Thread Gökhan Sever
On Sun, Jan 31, 2010 at 4:21 PM, per freem perfr...@gmail.com wrote: hi all, two quick questions about labels. first, is there a way to make subscripts/superscripts *without* using TeX in labels? For example, I use helvetica in all my labels and I want to plot something like:

Re: [Matplotlib-users] Draggable matplotlib legend

2010-01-29 Thread Gökhan Sever
One minor issue with the example is once you drag one of the items (legend or text or image) out of the plotting area there is no way to move them back unless you restart the example. Do you get the same defect? On Fri, Jan 29, 2010 at 11:40 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: I did

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

2010-01-29 Thread Gökhan Sever
/users/navigation_toolbar.html accordingly. On Mon, Jan 25, 2010 at 12:58 PM, Gökhan Sever gokhanse...@gmail.comwrote: Hello, I could these keys into rcsetup.py file as well as matplotlibrc.template and update backend_bases.py accordingly. And add some documentation reflecting the changes made

Re: [Matplotlib-users] Draggable matplotlib legend

2010-01-28 Thread Gökhan Sever
On Thu, Jan 28, 2010 at 3:48 PM, John Hunter jdh2...@gmail.com wrote: On Thu, Jan 28, 2010 at 3:02 PM, Adam Fraser adam.n.fra...@gmail.com wrote: I thought I'd share a solution to the draggable legend problem since it took me forever to assimilate all the scattered knowledge on the

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-01-28 Thread Gökhan Sever
On Tue, Jan 26, 2010 at 11:29 AM, Michael Droettboom md...@stsci.eduwrote: per freem wrote: Hi all, To annotate my figures with Greek letters, I use the following: import matplotlib matplotlib.use('PDF') import matplotlib.pyplot as plt from matplotlib import rc

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

2010-01-25 Thread Gökhan Sever
which aren't of intrest for the individual user. Furthermore the latter yields space for keyboard shortcuts, which are used in one's own program. Kind regards, Matthias On Friday 22 January 2010 16:57:22 Gökhan Sever wrote: It is very simple to change key-assignment. Take a look

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

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

[Matplotlib-users] Interact with matplotlib in Sage

2010-01-24 Thread Gökhan Sever
Hello, I have thought of this might interesting to share. Register at www.sagenb.org or try on your local Sage-notebook and using the following code: # Simple example demonstrating how to interact with matplotlib directly. # Comment plt.clf() to get the plots overlay in each update. # Gokhan

Re: [Matplotlib-users] '_label_angles' attribute missing

2010-01-22 Thread Gökhan Sever
know if there is any other issue. -JJ On Thu, Jan 21, 2010 at 8:34 PM, Gökhan Sever gokhanse...@gmail.com wrote: JJ, One thing is still little mysterious. My top xticks are reversed. See in the saved image: http://img46.imageshack.us/img46/3849/imagevp.png The code that produces

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

2010-01-22 Thread Gökhan Sever
list members think about that? Kind regards, Matthias On Thursday 21 January 2010 19:45:37 Gökhan Sever wrote: Hello, l key does the log - linear scaling for y-axis. I have made a minor change to use k for x-axis scaling. Patch added. Feel free to add if you find it useful

[Matplotlib-users] '_label_angles' attribute missing

2010-01-21 Thread Gökhan Sever
Possibly a question for JJ: pary.axis[right].get_helper()._label_angles[right]=270 This lines complain in my script when I try to run it: Traceback (most recent call last): File /usr/local/bin/aerosol_plot.py, line 276, in module pary.axis[right].get_helper()._label_angles[right]=270

Re: [Matplotlib-users] '_label_angles' attribute missing

2010-01-21 Thread Gökhan Sever
Yes, it is running from the latest trunk check-out. On Thu, Jan 21, 2010 at 3:27 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Do you happen to use the svn version? Regards, -JJ On Thu, Jan 21, 2010 at 3:06 PM, Gökhan Sever gokhanse...@gmail.com wrote: Possibly a question for JJ

Re: [Matplotlib-users] Increasing axis label sizes

2010-01-21 Thread Gökhan Sever
On Thu, Jan 21, 2010 at 4:16 PM, Michael Cohen mco...@caltech.edu wrote: Hi all, I am trying to figure out how to increase the size of the numbers that label the tick marks on the axes. Increasing the size of the axis labels is easy, use xlabel and the option fontsize = # How do I make the

Re: [Matplotlib-users] '_label_angles' attribute missing

2010-01-21 Thread Gökhan Sever
, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Jan 21, 2010 at 6:16 PM, Gökhan Sever gokhanse...@gmail.com wrote: Yes, it is running from the latest trunk check-out. The internals of how ticks, ticklables work in the svn version have significantly changed, which I hope is an improvement

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 lee.j.j...@gmail.com wrote: On Tue, Jan 12, 2010 at 9:56 PM, Gökhan Sever gokhanse...@gmail.com 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

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 gokhanse...@gmail.comwrote: On Wed, Jan 13, 2010 at 10:08 AM, Jae-Joon Lee lee.j.j...@gmail.comwrote: On Tue, Jan 12, 2010 at 9:56 PM, Gökhan Sever gokhanse...@gmail.com wrote: What could be causing this discrepancy? Is there any way to use

Re: [Matplotlib-users] Simple text style question

2010-01-13 Thread Gökhan Sever
On Wed, Jan 13, 2010 at 11:22 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Wed, Jan 13, 2010 at 11:32 AM, Gökhan Sever gokhanse...@gmail.com wrote: I printed the PNG and PS file. The result looks same on paper as well. I was comparing the two ps file one from IDL one from MPL. IDL looks

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 lee.j.j...@gmail.com wrote: On Mon, Jan 11, 2010 at 3:20 PM, Gökhan Sever gokhanse...@gmail.com 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

Re: [Matplotlib-users] Simple text style question

2010-01-12 Thread Gökhan Sever
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 gokhanse...@gmail.com wrote: On Tue, Jan 12, 2010 at 2:46 PM, Jae-Joon Lee lee.j.j...@gmail.comwrote: On Mon, Jan 11, 2010

Re: [Matplotlib-users] Simple text style question

2010-01-11 Thread Gökhan Sever
University of Warwick Coventry CV4 7AL d.mcdoug...@warwick.ac.uk On 11 Jan 2010, at 05:48, Gökhan Sever wrote: 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

Re: [Matplotlib-users] Simple text style question

2010-01-11 Thread Gökhan Sever
http://matplotlib.sourceforge.net/plot_directive/users/plotting/examples/anchored_box04.hires.png ), Regards, -JJ On Mon, Jan 11, 2010 at 11:13 AM, Gökhan Sever gokhanse...@gmail.com wrote: This seems like the solution. However when I try: I[1]: plt.plot(range(10)) I[2

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

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

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

Re: [Matplotlib-users] legend and symbols

2009-11-30 Thread Gökhan Sever
On Mon, Nov 30, 2009 at 4:26 AM, Oliver Tomic oliver.to...@nofima.nowrote: 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,

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 mbander...@wisc.edu 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

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

<    1   2   3   4   >