[Matplotlib-users] ticks in defined place?

2012-01-11 Thread Petro
Hi all. I want to make a plot with two xticks. Lets say at -3051 and 2011 position. How can I do it? Thanks. Petro. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT

Re: [Matplotlib-users] ticks in defined place?

2012-01-11 Thread Scott Sinclair
On 11 January 2012 15:13, Petro x.pi...@gmail.com wrote: I want to make a plot with two xticks. Lets say at -3051 and 2011 position. How can I do it? One way to do it: import numpy as np import matplotlib.pyplot as plt x = np.linspace(-3100, 2025, num=50) y = np.random.random(50) plt.plot(x,

[Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Skipper Seabold
Hi, Two related questions. Consider this plot - import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.plot([1,0,0,1],[0,1,0,0],[0,0,1,0]) ax.set_xlim3d(0,1) ax.set_ylim3d(0,1) #ax.set_ylim3d(1,0)

Re: [Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Benjamin Root
On Tue, Nov 8, 2011 at 4:55 PM, Skipper Seabold jsseab...@gmail.com wrote: Hi, Two related questions. Consider this plot - import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d')

Re: [Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Skipper Seabold
On Tue, Nov 8, 2011 at 6:13 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Nov 8, 2011 at 4:55 PM, Skipper Seabold jsseab...@gmail.com wrote: Hi, Two related questions. Consider this plot - import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig =

Re: [Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Benjamin Root
On Tuesday, November 8, 2011, Skipper Seabold jsseab...@gmail.com wrote: On Tue, Nov 8, 2011 at 6:13 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Nov 8, 2011 at 4:55 PM, Skipper Seabold jsseab...@gmail.com wrote: Hi, Two related questions. Consider this plot - import

[Matplotlib-users] Ticks width

2011-07-15 Thread ruggit
Hi, How to set the ticks width through rc? Something like: rc('xtick.major', size=6), but for the width? I cannot find the proper key. Thanks. R. -- AppSumo Presents a FREE Video for the SourceForge Community by Eric

Re: [Matplotlib-users] Ticks width

2011-07-15 Thread Eric Firing
On 07/14/2011 08:08 PM, ruggit wrote: Hi, How to set the ticks width through rc? Something like: rc('xtick.major', size=6), but for the width? I cannot find the proper key. There isn't one, and probably should be. You might want to file an issue on github. As a workaround, if you are not

Re: [Matplotlib-users] Ticks direction

2010-11-03 Thread Bartosz Telenczuk
ax = plt.subplot(1,1,1) ticks = ax.xaxis.get_majorticklines() mytick = ticks[3] mytick.set_marker(2) plt.draw() Cool! That's what I have been looking for. Thanks so much for your help. Regards, Bartek --

Re: [Matplotlib-users] Ticks direction

2010-11-02 Thread Jae-Joon Lee
A quick (and not safe) way w/ mpl v1.0 is, ax = plt.subplot(111) ax.plot(np.arange(3)) ax.set_xticks([0, 0.5, 1., 1.5, 2.]) mytick = ax.xaxis.majorTicks[2] mytick._apply_params(tickdir=out) I don't think there is a way to do this only using public apis. I myself actually

Re: [Matplotlib-users] Ticks direction

2010-11-02 Thread Eric Firing
On 11/02/2010 03:18 PM, Jae-Joon Lee wrote: A quick (and not safe) way w/ mpl v1.0 is, ax = plt.subplot(111) ax.plot(np.arange(3)) ax.set_xticks([0, 0.5, 1., 1.5, 2.]) mytick = ax.xaxis.majorTicks[2] mytick._apply_params(tickdir=out) I don't think there is a way

[Matplotlib-users] Ticks direction

2010-11-01 Thread Bartosz Telenczuk
Hi all, Is it possible to set direction (in or out) individually for each tick. I know about the rc setting ((x/y)tick.direction) , but I need a finer control over the ticks. Thanks, Bartek -- Nokia and ATT present

Re: [Matplotlib-users] Ticks Size

2010-10-19 Thread Ted Kord
Thanks all. That fixed the problem. Ted On 19 October 2010 00:02, Gökhan Sever gokhanse...@gmail.com wrote: 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

[Matplotlib-users] Ticks Size

2010-10-18 Thread Ted Kord
Hi How do I make the tick size bigger as in thicker/bolder? matplotlib.rc('ytick.major', size=5) makes it longer but 'not' thicker. Ted -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and

Re: [Matplotlib-users] Ticks Size

2010-10-18 Thread Eric Firing
On 10/18/2010 09:42 AM, Gökhan Sever wrote: On Mon, Oct 18, 2010 at 12:46 PM, Ted Kordteddy.k...@gmail.com wrote: Hi How do I make the tick size bigger as in thicker/bolder? matplotlib.rc('ytick.major', size=5) makes it longer but 'not' thicker. Ted I[1]: plt.plot(range(100)) O[1]:

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] ticks at 0 and 2pi

2010-04-20 Thread Nikolaus Rath
Hello, I'm trying to plot something from 0 to 2pi: fig = plt.figure() ax = fig.add_subplot(111) ax.set_title('Radial Magnetic Field') ax.set_ylabel(r'Poloidal Angle $\theta$') ax.set_xlabel(r'Toroidal Angle $\phi$') ax.set_xticks([0, 2 * math.pi])

Re: [Matplotlib-users] ticks at 0 and 2pi

2010-04-20 Thread Ryan May
On Tue, Apr 20, 2010 at 8:58 AM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'm trying to plot something from 0 to 2pi:    fig = plt.figure()    ax = fig.add_subplot(111)    ax.set_title('Radial Magnetic Field')    ax.set_ylabel(r'Poloidal Angle $\theta$')    ax.set_xlabel(r'Toroidal

Re: [Matplotlib-users] ticks at 0 and 2pi

2010-04-20 Thread Nikolaus Rath
On 04/20/2010 10:29 AM, Ryan May wrote: On Tue, Apr 20, 2010 at 8:58 AM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'm trying to plot something from 0 to 2pi: fig = plt.figure() ax = fig.add_subplot(111) ax.set_title('Radial Magnetic Field') ax.set_ylabel(r'Poloidal Angle

Re: [Matplotlib-users] Ticks im mplot3d at the edges

2010-03-22 Thread Martin Bothe
Well, to be clear. How to get tick labels at the very end of the axes? If the x-axis goes from is 0, 1 the axis ticks will be at 0.2,0.4,0.6 and 0.8 as you can here: see http://matplotlib.sourceforge.net/examples/mplot3d/2dcollections3d_demo.html How do I additionally get labels at 0 and 1? Hope

[Matplotlib-users] Ticks

2009-04-27 Thread D2Hitman
I am looking to change the size/style of the tick markers. Not the labels associated with each tick, the dashes. How do i go about this? Cheers, Jon. -- View this message in context: http://www.nabble.com/Ticks-tp23253405p23253405.html Sent from the matplotlib - users mailing list archive at

Re: [Matplotlib-users] Ticks

2009-04-27 Thread Sandro Tosi
On Mon, Apr 27, 2009 at 12:15, D2Hitman j.m.gir...@warwick.ac.uk wrote: I am looking to change the size/style of the tick markers. Not the labels associated with each tick, the dashes. How do i go about this? There are several options in matplotlib config file (on Debian it's /etc/matplotlibrc,

Re: [Matplotlib-users] Ticks

2009-04-27 Thread Matthias Michler
Hi Jon, the dashed associated with each tick are actually line instances and therefore hold information about the used marker, markersize, color, ... For example you could do the following: import matplotlib.pyplot as plt ax = plt.gca() # get the current axes for l in ax.get_xticklines() +

Re: [Matplotlib-users] Ticks

2009-04-27 Thread D2Hitman
Thanks both of you. Works nicely. I was also looking for line thickness, so: for l in ax.get_xticklines() + ax.get_yticklines(): l.set_markersize(10) l.set_markeredgewidth(10) Has a slightly blurry edge at that size, but does the job. Cheers, Jon. Matthias Michler wrote: Hi Jon,

[Matplotlib-users] ticks Locator class

2009-02-03 Thread Thomas Robitaille
Hi everyone, I am defining my own Locator class to determine where matplotlib should place the ticks on the x axis. I have managed do so, except for one problem. In order to determine the position of the ticks on the x-axis, I not only need the x axis range, which I can retrieve with

[Matplotlib-users] ticks in Matplotlib

2009-02-01 Thread Eli Bressert
Hi, I'm looking into customizing the the tick positions on an imshow plot. I found that you can do this by doing img = imshow(data) img.ax.xaxis.set_ticks([100.,200.]) The problem with this method is that it moves the tick positions on the bottom and top x axis. What if I wanted to do have

Re: [Matplotlib-users] ticks in Matplotlib

2009-02-01 Thread Jae-Joon Lee
You cannot set different tick positions for bottom and top x-axis in the same axes. What you can do is to make another axes at the same location and use it to draw ticks at top. Take a look at http://matplotlib.sourceforge.net/examples/api/two_scales.html But it may not be an ideal solution for

[Matplotlib-users] ticks labels

2008-08-11 Thread Jeffrey Fogel
I am having some trouble getting the ticks and labels on my plot to match what I want and I was hoping that someone here would be able to help. Here are what I want (on the yaxis): logarithmic ticks with major ticks every order of magnitude but labels ONLY every other magnitude. Additionally, I

Re: [Matplotlib-users] ticks labels

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 1:45 PM, Jeffrey Fogel [EMAIL PROTECTED] wrote: The two things I have been unable to figure out are how to add a major tick at all of the other magnitudes (those without a label) and how to change the format of the labels so that only the exponent is showing. I'm sure

Re: [Matplotlib-users] ticks labels

2008-08-11 Thread Jae-Joon Lee
A minor comment. John's code may give incorrect results when exponents are negative. int() truncates a floating point argument towards zero, e.g., int(-1.5) == -1 not -2. I guess calling floor() before int() will work. fx = int(np.floor(np.log(abs(val))/np.log(self._base) +0.5)) -JJ On

Re: [Matplotlib-users] ticks labels

2008-08-11 Thread Jeffrey Fogel
Thanks John, that worked perfectly (with JJ's correction). I'm fairly new to python and hadn't considered writing a separate class for it. -Jeffrey On Mon, Aug 11, 2008 at 3:53 PM, Jae-Joon Lee [EMAIL PROTECTED] wrote: A minor comment. John's code may give incorrect results when exponents are

Re: [Matplotlib-users] ticks label to the right side

2008-06-16 Thread Stan West
Quoting Fabrice Silva: Using version 0.91.2, I do not manage to push ticks labels to the right side of the axis, keeping ticks lines on both sides. How can I do it ? One solution is yax = gca().yaxis yax.set_ticks_position('right') # labels right side; removes left ticks

[Matplotlib-users] ticks size

2007-04-30 Thread Claudio
Hello. I'm writing for a question about the bar() object. My problem is that I have to write long labels to the ticks to indicate the bins' meaning but they are overlapping one onto another. Is there any way i can handle the size (without having to actually modify the whole system through config