SalishSeaCast / SalishSeaNowcast

Python package associated with running the SalishSeaCast NEMO and other ocean models in near-real-time to produce daily nowcasts/forecasts
https://salishsea.eos.ubc.ca/nemo/
Apache License 2.0
4 stars 3 forks source link

Set time series x-axis limits explicitly #64

Open douglatornell opened 5 years ago

douglatornell commented 5 years ago

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:

douglatornell commented 5 years ago

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


douglatornell commented 5 years ago

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


Set explicit time series x-axes limits.

re: issue #64

douglatornell commented 5 years ago

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 commented 5 years ago

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


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

re: issue #64

douglatornell commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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


set attachment to "TimeSeriesAutoScaleEndGaps.png"

douglatornell commented 5 years ago

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


changed state from "new" to "open"

douglatornell commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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:

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:

douglatornell commented 5 years ago

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:

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:

douglatornell commented 5 years ago

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:

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:

douglatornell commented 5 years ago

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:

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: