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

Set time series x-axis limits explicitly #64

Open
douglatornell opened this issue Oct 16, 2018 · 21 comments
Open

Set time series x-axis limits explicitly #64

douglatornell opened this issue Oct 16, 2018 · 21 comments
Labels
bug Something isn't working major Plots v3.3

Comments

@douglatornell
Copy link
Member

Original report by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).

The original report had attachments: TimeSeriesAutoScaleEndGaps.png


The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get the time series to fill the axes horizontally it seems to now be necessary to use Axes.set_xlim(), for example:

ax.set_xlim(plot_data.hrdps_dir.time.values[0], plot_data.hrdps_dir.time.values[-1])

Affected figure modules:

  • comparison/sandheads_winds.py FIXED
  • comparison/compare_venus_ctd.py FIXED
  • publish/compare_tide_prediction_max_ssh.py FIXED
  • fvcom/second_narrows_current.py FIXED
  • fvcom/tide_stn_water_level.py FIXED
  • wwatch3/wave_height_period.py FIXED
  • research/time_series_plots.py FIXED
@douglatornell
Copy link
Member Author

Original comment by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


set attachment to "TimeSeriesAutoScaleEndGaps.png"

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed state from "new" to "open"

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th"

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed title from "Set time series x-axis limit explicitly" to "Set time series x-axis limits explicitly"

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th"

4 similar comments
@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th"

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th"

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th"

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th"

@douglatornell
Copy link
Member Author

Original comment by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


Set explicit time series x-axes limits.

re: issue #64

@douglatornell
Copy link
Member Author

Original comment by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


Set explicit time series x-axes limits in 2nd Narrows currents figure.

re: issue #64

@douglatornell
Copy link
Member Author

Original comment by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


Set explicit time series x-axes limits in WWatch3 evaluation figure.

re: issue #64

@douglatornell
Copy link
Member Author

Original comment by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


Set explicit time series x-axes limits in tide gauge stn water levels figs.

re: issue #64

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get th"

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get the time series to fill the axes horizontally it seems to now be necessary to use Axes.set_xlim(), for example:

ax.set_xlim(plot_data.hrdps_dir.time.values[0], plot_data.hrdps_dir.time.values[-1])

Affected figure modules:

  • comparison/sandheads_winds.py FIXED
  • comparison/compare_venus_ctd.py FIXED
  • publish/compare_tide_prediction_max_ssh.py
  • fvcom/second_narrows_current.py FIXED
  • fvcom/tide_stn_water_level.py FIXED
  • wwatch3/wave_height_period.py FIXED" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get the time series to fill the axes horizontally it seems to now be necessary to use Axes.set_xlim(), for example:

ax.set_xlim(plot_data.hrdps_dir.time.values[0], plot_data.hrdps_dir.time.values[-1])

Affected figure modules:

  • comparison/sandheads_winds.py FIXED
  • comparison/compare_venus_ctd.py FIXED
  • publish/compare_tide_prediction_max_ssh.py FIXED
  • fvcom/second_narrows_current.py FIXED
  • fvcom/tide_stn_water_level.py FIXED
  • wwatch3/wave_height_period.py FIXED"

@douglatornell
Copy link
Member Author

Original comment by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


Set explicit time series x-axes limits in tide prediction & max ssh figs.

re: issue #64

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get the time series to fill the axes horizontally it seems to now be necessary to use Axes.set_xlim(), for example:

ax.set_xlim(plot_data.hrdps_dir.time.values[0], plot_data.hrdps_dir.time.values[-1])

Affected figure modules:

  • comparison/sandheads_winds.py FIXED
  • comparison/compare_venus_ctd.py FIXED
  • publish/compare_tide_prediction_max_ssh.py FIXED
  • fvcom/second_narrows_current.py FIXED
  • fvcom/tide_stn_water_level.py FIXED
  • wwatch3/wave_height_period.py FIXED" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get the time series to fill the axes horizontally it seems to now be necessary to use Axes.set_xlim(), for example:

ax.set_xlim(plot_data.hrdps_dir.time.values[0], plot_data.hrdps_dir.time.values[-1])

Affected figure modules:

  • comparison/sandheads_winds.py FIXED
  • comparison/compare_venus_ctd.py FIXED
  • publish/compare_tide_prediction_max_ssh.py FIXED
  • fvcom/second_narrows_current.py FIXED
  • fvcom/tide_stn_water_level.py FIXED
  • wwatch3/wave_height_period.py FIXED"

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get the time series to fill the axes horizontally it seems to now be necessary to use Axes.set_xlim(), for example:

ax.set_xlim(plot_data.hrdps_dir.time.values[0], plot_data.hrdps_dir.time.values[-1])

Affected figure modules:

  • comparison/sandheads_winds.py FIXED
  • comparison/compare_venus_ctd.py FIXED
  • publish/compare_tide_prediction_max_ssh.py FIXED
  • fvcom/second_narrows_current.py FIXED
  • fvcom/tide_stn_water_level.py FIXED
  • wwatch3/wave_height_period.py FIXED" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get the time series to fill the axes horizontally it seems to now be necessary to use Axes.set_xlim(), for example:

ax.set_xlim(plot_data.hrdps_dir.time.values[0], plot_data.hrdps_dir.time.values[-1])

Affected figure modules:

  • comparison/sandheads_winds.py FIXED
  • comparison/compare_venus_ctd.py FIXED
  • publish/compare_tide_prediction_max_ssh.py FIXED
  • fvcom/second_narrows_current.py FIXED
  • fvcom/tide_stn_water_level.py FIXED
  • wwatch3/wave_height_period.py FIXED
  • research/time_series_plots.py"

@douglatornell
Copy link
Member Author

Original comment by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


Set explicit time series x-axes limits in biology time series figs.

re: issue #64

Also rotate right y-axis label, and change x-axis date tick labels
format.

@douglatornell
Copy link
Member Author

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed content from "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get the time series to fill the axes horizontally it seems to now be necessary to use Axes.set_xlim(), for example:

ax.set_xlim(plot_data.hrdps_dir.time.values[0], plot_data.hrdps_dir.time.values[-1])

Affected figure modules:

  • comparison/sandheads_winds.py FIXED
  • comparison/compare_venus_ctd.py FIXED
  • publish/compare_tide_prediction_max_ssh.py FIXED
  • fvcom/second_narrows_current.py FIXED
  • fvcom/tide_stn_water_level.py FIXED
  • wwatch3/wave_height_period.py FIXED
  • research/time_series_plots.py" to "The auto-scaling algorithm for axis limits has changed between matplotlib-1.5.3 and matplotlib-3.0.0 such that time series are (often) now plotted with gaps between the plotted values and the axes left and right sides (example attached).

To get the time series to fill the axes horizontally it seems to now be necessary to use Axes.set_xlim(), for example:

ax.set_xlim(plot_data.hrdps_dir.time.values[0], plot_data.hrdps_dir.time.values[-1])

Affected figure modules:

  • comparison/sandheads_winds.py FIXED
  • comparison/compare_venus_ctd.py FIXED
  • publish/compare_tide_prediction_max_ssh.py FIXED
  • fvcom/second_narrows_current.py FIXED
  • fvcom/tide_stn_water_level.py FIXED
  • wwatch3/wave_height_period.py FIXED
  • research/time_series_plots.py FIXED"

@douglatornell douglatornell added major Plots bug Something isn't working v3.3 labels Feb 2, 2020
@douglatornell douglatornell added this to the matplotlib-3 Figures milestone Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major Plots v3.3
Projects
None yet
Development

No branches or pull requests

1 participant