pbfy0 / visvis

Automatically exported from code.google.com/p/visvis
Other
0 stars 0 forks source link

Axis not correctly positioned when using non-interactive mode #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

import visvis as vv
vv.gcf().enableUserInteraction = False
vv.plot([1,2,5])

What is the expected output? What do you see instead?

No space is reserved for the x- and y- axis

Please use labels and text to provide additional information.

In the Axes() class in axes.py, OnDrawShape() calls 
_CorrectPositionForLabels(). However, when user interaction is disabled, 
OnDrawShape is never called. 

The issue may be fixed by calling _CorrectPositionForLabels() from 
_OnDrawInMode. However, this does mean it is called twice when user interaction 
is enabled; this may be a performance issue

Original issue reported on code.google.com by r.reil...@gmail.com on 6 Sep 2012 at 12:55

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 57116c872110.

Original comment by almar.klein@gmail.com on 26 Sep 2012 at 1:53