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
modify the appearance of the ACF PLOT function when using subplots #2085
Comments
You can adjust attributes of the plot using the axes instance, and manipulate the figure with the fig instance some options can be given to the function in the We can change specific items in the plot, if you have more suggestions. |
@josef-pkt: thanks for your help!
adding the legend also worked well as you suggested.
Thanks again! |
(After writing this I realized you already figured it out.)
|
BTW: A PR for improvements would be welcome, if you think some of the options are useful to other users. |
Sure! the only thing that I can think of now, regarding the ACF plot, is that I think it might be useful to let the user control the colors of the ACF plot (maybe there is a way that I'm not aware of yet), especially the color appearing on the legend. What I mean by that is when you plot a large data set and use a large number of lags, the color of the line changes from BLUE to BLACK. However, the program recognizes the color as blue and therefore, it appears as blue on the legend (blue line next to the string) and could be confusing for the observer, as in my case. So this option might not be relevant for everyone and might seem too minor, but then again it could be important for some other users. |
adding some plot options sounds like "good as first PR" |
@josef-pkt Any other attribute which should be added to the function ?? |
Hi!
I'm using statsmodels (0.6.0) on Python 2.7, and i'd like to plot several autocorrelation functions as subplots. Each subplot represents the autocorrelation for different data on each month so i'd like to compare them visually.
Now, the problem is that unlike other functions (which I easily subplot using Matplolib), here I am not able to add a lagend, add xlabel or use other common features in plotting. It seems that
ACF
plot in statsmodels has fixed and "anchored" properties, like the title "Autocorrelation" cannot be removed (or at least I couldn't find a way). The reason i'd like to remove it is that it appears on the head of each subplot and covers the axis of the plots above it.Here is the subplots figure that I got:
Moreover, It would be helpful to add legends to mark each month and add "Lag" on the bottom of the figure.
the following functions didn't work:
Does anybody know if such changes are feasible and if yes how to do it?
P.S
for the figure above I used the following:
The text was updated successfully, but these errors were encountered: