|
From: John H. <jdh...@ac...> - 2004-07-07 17:27:52
|
>>>>> "cfuller" == cfuller <cf...@th...> writes:
cfuller> Ack, I'll try not to let it go to my head! Hacking on
cfuller> backends is more then I bargained for! I'm no good at
cfuller> making bitmaps, so someone else should figure out what
cfuller> the button should look like. I'll make my demo into a
cfuller> proper dialog, hook it up to generic button, and I'll
cfuller> even take a whack at the wx backend, but that will be
cfuller> tricky, since it won't even run on my machine for some
cfuller> reason. I suppose you just got a reluctant wx developer,
cfuller> if I'm going to debug that :)
That would be great - there are some known gtk related problems with
the latest wx release that are independent of matplotlib. What
platform are you having trouble with?
As for the pixmap, what we've done in the past is I pick some suitable
gtk stock icon and we just copy that into a pixmap.
cfuller> If all goes well, I'll see about the ticklabels.
cfuller> As for your question about axes_demo, I was thinking
cfuller> along these lines while developing the code. It would be
cfuller> simple enough to generalize to working with a list of
cfuller> axes, rather than passing a figure and querying the
cfuller> figure to get the list. A bounding box would have to be
cfuller> passed along also, to stand in for the full figure
cfuller> [0,1],[0,1] box. A default bounding box could be defined
cfuller> by the axes. It should be fairly simple to implement. I
cfuller> just thought it was getting a little too ambitious :) (or
cfuller> at least more then my needs required, if you prefer!)
I don't think its necessary to support Axes, just to fail gracefully.
They are only used when people place them explicity, so I don't know
that it's necessary to interactively resize them. Failing gracefully
with something along the lines of
if not isinstance(ax, axes.Subplot):
error_msg('only works with subplots')
would satisfy me.
cfuller> For that matter, it doesn't have to work on only
cfuller> axes. Any rectangular region would do. The Text class
cfuller> even has get_position and set_position methods! See the
cfuller> kind of trouble I get into?
Whoa now, easy there.
cfuller> Chris Fuller
cfuller> -------------------------------------------------------
cfuller> This SF.Net email sponsored by Black Hat Briefings &
cfuller> Training. Attend Black Hat Briefings & Training, Las
cfuller> Vegas July 24-29 - digital self defense, top technical
cfuller> experts, no vendor pitches, unmatched networking
cfuller> opportunities. Visit www.blackhat.com
cfuller> _______________________________________________
cfuller> Matplotlib-devel mailing list
cfuller> Mat...@li...
cfuller> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
|