From: Stefan S. <Ste...@ph...> - 2010-10-27 18:21:12
Attachments:
none-texter.patch
|
Hi all, Am Mittwoch, 27. Oktober 2010, 19:03:01 schrieb Chris van Dijk: > On Wed, 27 Oct 2010 18:21:48 +0200 > Axel Freyn <fre...@us...> wrote: > > On Wed, Oct 27, 2010 at 03:43:32PM +0200, Enrico Avventi wrote: > > > i got stuck finding how i could perform certain customizations of > > > my graphs. so far i managed to avoid printing tick labels in the > > > following way: [...] > > This works, but the easiest way is to use the > > "labeldists"-parameter from the parter : [...] > I wonder if specifying a painter with "labelattrs=None" would be > easier? All these solutions seem to work for me, but I would have expected that setting texter=None in the specification of the axis should do the trick, which it doesn't. And I still believe that this is the way it should work, so I put together a small patch (see attached) to change the behaviour. Are there different opinions? Stefan |
From: André W. <wo...@us...> - 2010-10-27 19:59:30
Attachments:
smime.p7s
|
Hi Stefan, Am 27.10.2010 um 20:04 schrieb Stefan Schenk: >> I wonder if specifying a painter with "labelattrs=None" would be >> easier? > > All these solutions seem to work for me, but I would have expected that > setting texter=None in the specification of the axis should do the > trick, which it doesn't. And I still believe that this is the way it > should work, so I put together a small patch (see attached) to change > the behaviour. Are there different opinions? Yeah, I don't like it at all. No way. The texter has nothing to do with output at all. It creates the label text for each tick which happens to have a label. There is one correct solution, which is to have the labellevels of all ticks being None. It might be inconvenient to achieve this as you need to configure the parter. The other solution, disabling the labels in the painter, is not as nice as having all labellevels being None. But I dislike your suggestion most. (Sorry, I don't want to blame you; I really just do not like this solution.) André -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |
From: Stefan S. <Ste...@ph...> - 2010-10-27 20:46:14
|
Hi, Am Mittwoch, 27. Oktober 2010, 21:32:39 schrieb André Wobst: > > All these solutions seem to work for me, but I would have expected > > that setting texter=None in the specification of the axis should > > do the trick, which it doesn't. And I still believe that this is > > the way it should work, so I put together a small patch (see > > attached) to change the behaviour. Are there different opinions? > > Yeah, I don't like it at all. No way. The texter has nothing to do > with output at all. It creates the label text for each tick which > happens to have a label. I'm still not sure I understand your argument. I agree that the texter creates just the label text for the ticks, but why shouldn't it be possible to set texter=None? I agree that my quick patch might not be the best way to implement this, but right now to me the texter seems inconsistent to the way the parter works, for example. Stefan |
From: André W. <wo...@us...> - 2010-10-28 04:29:01
Attachments:
smime.p7s
|
Hi Stefan, Am 27.10.2010 um 22:45 schrieb Stefan Schenk: > I'm still not sure I understand your argument. I agree that the texter > creates just the label text for the ticks, but why shouldn't it be > possible to set texter=None? I agree that my quick patch might not be > the best way to implement this, but right now to me the texter seems > inconsistent to the way the parter works, for example. Well, the texter is not responsible to decide whether labels are to be created or not. Please check the output generated when setting tick.label = "". It will contain empty text output (I didn't try; we might optimize this to get rid of empty text output – I'm not sure). This is different from having tick.labellevel equals None for all ticks, where no output is generated at all or using labelattrs=None in the painter, where no output for the labels is generated either. And please do not suggest to set tick.labellevel to None for texter equals None. Sure you could do that, but this is not the right way (tm) of doing things. André -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |