Doc: Dates being plotted wrong_x-compact parameter #20688
State: closed

- [x] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry


Labels:
name: Visualization
description: plotting
name: Stale

Comments:
cc @TomAugspurger 

@gauravchandok : Thanks for submitting this.  Do you have any sample code to reproduce the issue you are describing?

> @gauravchandok : Thanks for submitting this. Do you have any sample code to reproduce the issue you are describing?

@gfyoung  In regards to suppressing the tick? This issue thread here provides the original issue https://github.com/pandas-dev/pandas/issues/20688 

@TomAugspurger I did not see in any of the function notes or parameters. `pandas.Series.plot` is another example where we could reference it. It seems to be a simple solution to a common problem.
Right, agreed. But I don't think this is the right place to include it
since it isn't available for all plot types. IIUC, it's just for plots
inheriting for LinePlot & AreaPlot.

So I think it'd be more appropriate to include in the `.line` and `.area`
methods, rather than `_bar_or_line_doc`.

On Tue, Jun 23, 2020 at 10:16 AM Gaurav Chandok <notifications@github.com>
wrote:

> @gauravchandok <https://github.com/gauravchandok> : Thanks for submitting
> this. Do you have any sample code to reproduce the issue you are describing?
>
> @gfyoung <https://github.com/gfyoung> In regards to suppressing the tick?
> This issue thread here provides the original issue #20688
> <https://github.com/pandas-dev/pandas/issues/20688>
>
> @TomAugspurger <https://github.com/TomAugspurger> I did not see in any of
> the function notes or parameters. pandas.Series.plot is another example
> where we could reference it. It seems to be a simple solution to a common
> problem.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/pandas-dev/pandas/pull/34874#issuecomment-648230362>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAKAOIUQ45DSUF7ZSMJ77FTRYDBNJANCNFSM4OC6TREQ>
> .
>

@TomAugspurger Fair enough, I was conflicted about this. I'll make the adjustments and do another push. 
> Right, agreed. But I don't think this is the right place to include it since it isn't available for all plot types. IIUC, it's just for plots inheriting for LinePlot & AreaPlot. So I think it'd be more appropriate to include in the `.line` and `.area` methods, rather than `_bar_or_line_doc`.
> […](#)
> On Tue, Jun 23, 2020 at 10:16 AM Gaurav Chandok ***@***.***> wrote: @gauravchandok <https://github.com/gauravchandok> : Thanks for submitting this. Do you have any sample code to reproduce the issue you are describing? @gfyoung <https://github.com/gfyoung> In regards to suppressing the tick? This issue thread here provides the original issue #20688 <#20688> @TomAugspurger <https://github.com/TomAugspurger> I did not see in any of the function notes or parameters. pandas.Series.plot is another example where we could reference it. It seems to be a simple solution to a common problem. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <[#34874 (comment)](https://github.com/pandas-dev/pandas/pull/34874#issuecomment-648230362)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAKAOIUQ45DSUF7ZSMJ77FTRYDBNJANCNFSM4OC6TREQ> .

@TomAugspurger The following show the pages we touched upon.

These are for .plot:
https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.plot.html?highlight=plot
https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.plot.html?highlight=plot#pandas.DataFrame.plot

These are .plot.line
https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.plot.line.html?highlight=s%20plot%20line#pandas.DataFrame.plot.line
https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.plot.line.html?highlight=s%20plot%20line#pandas.Series.plot.line

.plot.area:
https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.plot.area.html?highlight=plot%20area#pandas.DataFrame.plot.area

As you prescribed, it is far more accurate to place to create the notes section in .line and .area as these are specific to them.
I shall make these changes and push them.

Thank you



ping @TomAugspurger 
Hi @gauravchandok is this still active? If so could you address Tom's comments?
This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.
Closing for now. @gauravchandok ping us whenever you'd like to continue and we'll reopen!