NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 20 forks source link

PyFerret plots in LAS squash the time-axis labels #1831

Open karlmsmith opened 6 years ago

karlmsmith commented 6 years ago

Reported by @AnsleyManke on 31 Aug 2017 19:33 UTC In LAS we draw plots with small margins (using viewports), and with the tic-marks drawn inside the box. When running PyFerret, this winds up placing the labels on time axes right on or overlapping the axis line. This happens with the time-axis styles that have just one line of labels, like the names of months.

Attached are a LAS plot and the same data plotted with default window setup.

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2559

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 31 Aug 2017 19:36 UTC Investigating, this is related to the positioning of the tic marks on the axes. We draw the tic marks inside the plot box, and the labels seem to be located relative to the tics. If I set the style to have short tic marks extending outside the box, it looks better, but only for the time-axis styles with a single label. Ones labeled with year and month for instance look worse. This needs to be fixed in PyFerret.

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 31 Aug 2017 19:44 UTC The third image has year/month labels. It's not as jarring as the ones with months only, but the month labels are still right on the plot line.

karlmsmith commented 6 years ago

Attachment from @AnsleyManke on 31 Aug 2017 19:33 UTC LAS y-t plot 08e427827cc93c475e68c74b48349da9_plot_image

karlmsmith commented 6 years ago

Attachment from @AnsleyManke on 31 Aug 2017 19:34 UTC the same plot without viewport and other special drawing settings default

karlmsmith commented 6 years ago

Attachment from @AnsleyManke on 31 Aug 2017 19:41 UTC A plot with year/month labels on the time axis bc4033612d25d4215084e971810848c0_plot_image