Closed
Description
There should be one-- and preferably only one --obvious way to do it.
Now we have two different methods to shift origins:
- passing arguments like
xshift="2c", yshift="1c"
to any plotting modules - explicitly call
Figure.shift_origin(xshift="2c", yshift="1c")
GMT users are familiar with method 1, but IMHO method 2 is more pythonic. As I can see, these two methods are equivalent.
Should we remove xshift and yshift from all plotting modules, so that we can better follow the zen of python, and also make the docstrings shorter.
If yes, we need to do more things:
- Remove xshift and yshift alias from docstrings of all plotting functions
- Raise a warning/error if xshift, yshift, X or Y is passed.
- Improve the docstrings of
Figure.shift_origin()
.