2009/12/9 Jae-Joon Lee :
> vp = leg._legend_box._children[-1]._children[0]
> for c in vp._children:
>c._children.reverse()
> vp.align="right"
That's perfect, thank you very much :)
— Jason
--
Return on Information:
G
plot([1,2,3], label="Label 1")
plot([2,1,3], label="Long Label 2")
leg = legend()
# swap_and_right_align_legend
vp = leg._legend_box._children[-1]._children[0]
for c in vp._children:
c._children.reverse()
vp.align="right"
draw()
Does this close to waht you want?
-JJ
On Wed, Dec 9, 2009
Hi,
Is it possible to right align the text and line samples in a legend box?
That is, instead of:
--- First plot
--- Second plot
...you get:
First plot ---
Second plot ---
(with a fixed width font, that last one displays the right edges of
the text perfectly aligned).
Cheers,
Jason
-
Did you test the code in my previous post?
If you want to get some help, you need to take your time to create a simple
and complete example (which reproduces the problem) that others can easily
test.
Since I believe the problem is due to the existence of an extra axes, your
example don't need to
Note that you have to install matplotlib from the svn. And the example
is also available in the svn.
Regards,
-JJ
On Tue, Dec 8, 2009 at 4:28 AM, ihab riad wrote:
> Hu Jae-Joon,
> Yes this is very useful, I thinks many people here will love this.
>
> I tried to access the code, but I could no
Sorry for the delay.
I don't know if I ever included my software versions:
Python & IDLE 2.6.2
matplotlib 0.99.0
numpy 1.4.0rc1 (I was using 1.3.0)
Here is more complete code. This is the only place I use matplotlib for
anything so I don't think any earlier code should affect the plot.
I've include
Good morning list,
I have been trying to install the latest matplotlib on Snow Leopard
with the latest X-Code for a few days. I have tried the installer
packages (wrong versions) and the source (build errors) and neither
worked. I finally got it installed correctly by using MacPorts. I
wrote up
Hi:
I'm trying to get a semilog 3D plot. I want to plot several 2D time series
lines, with the third axis being on a log scale. I am trying to set an axis
to log using ax.set_yscale('log'), but am getting errors. Is this possible?
I keep getting numpy errors when I try:
raise MaskError, 'Cannot c
On Tue, Dec 8, 2009 at 3:27 AM, Matthias Michler wrote:
>
> I added an example program which illustrates my idea using transformation
> of
> axes-coord. to screen-coord. and from screen-coord. to fig-coord.
>
> point_screen = ax.transAxes.transform_point(point_ax)
> point_fig = fig.transFigure.i
Hu Jae-Joon,
Yes this is very useful, I thinks many people here will love this.
I tried to access the code, but I could not get there.
Can u pass me the link.
Cheers Ihab
On Mon, Dec 7, 2009 at 9:25 PM, Jae-Joon Lee wrote:
> I updated the axes_grid toolkit in the svn, and I hope it is more us
Hi Abhi,
I added an example program which illustrates my idea using transformation of
axes-coord. to screen-coord. and from screen-coord. to fig-coord.
point_screen = ax.transAxes.transform_point(point_ax)
point_fig = fig.transFigure.inverted().transform_point(point_screen)
I don't know if
Wayne Watson wrote:
> I thought the console was the only way to use IPython. I go to
> Start->Allprograms->IPython, and select IPython. Oh, I see *Console" is
> something of a replacement for the Win Cmd Console. Is there some site
> that shows off it's features?
Not that I know of.
By the way
12 matches
Mail list logo