Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for interface change #2

Open
fangohr opened this issue Mar 22, 2017 · 0 comments
Open

Suggestion for interface change #2

fangohr opened this issue Mar 22, 2017 · 0 comments
Assignees

Comments

@fangohr
Copy link
Owner

fangohr commented Mar 22, 2017

Pandas allows to give an axis handle to matplotlib axis objects to the plotting method. Like this:

%matplotlib inline

import matplotlib.pyplot as plt

import pandas as pd
import numpy as np

fig, ax = plt.subplots(1, 1)
df = pd.DataFrame(np.random.rand(5, 3), columns=['a', 'b', 'c'])
ax.get_xaxis().set_visible(False)   # Hide Ticks
df.plot(ax=ax)

I suggest to use the same method and the same name (ax) in this tool to allow the user to fine tune the plot, and put the plot into an existing axis object.

It looks like this is 'just' a matter of renaming predefined_axis to ax?

@davidcortesortuno davidcortesortuno self-assigned this Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants