Commit Graph

44 Commits

Author SHA1 Message Date
Tom Keffer
9bf85d18e3 Merge branch 'development' into V5 2023-04-03 18:54:56 -07:00
Tom Keffer
48f6053acf Put coordinates in proper order for drawing a rectangle.
Fixes issue #862.
2023-04-03 18:54:28 -07:00
Tom Keffer
cd9003dd6c Activate workaround for earlier versions of Pillow.
Without the workaround, you can get a segmentation fault.
See https://github.com/python-pillow/Pillow/issues/3066
2023-02-21 15:09:29 -08:00
Tom Keffer
eddd71d5f1 Modernize utilities.
Now Python 3 only.
2023-02-14 15:33:26 -08:00
Tom Keffer
00ad02f392 Fixed doctests in utilities.py. 2021-11-04 11:06:28 -07:00
Tom Keffer
e51b2a63a5 Fixed problem where unit labels would not render correctly under Python 2.7 if
they were set by a 3rd party extension. Fixes issue #662.
2021-04-08 07:37:48 -07:00
Tom Keffer
f2b20931cb Plots longer than 2 years use a 6 month time increment. 2021-02-12 14:07:15 -08:00
Tom Keffer
1f7790d46c A time scale of two years should use a time increment of one month. 2021-02-10 07:35:25 -08:00
Tom Keffer
8f54e26646 Fixed problem with running running test suites under Python 2. 2021-01-29 15:49:46 -08:00
Tom Keffer
bf4da5b73e Fixed problem where plots could fail if the data range was outside of a specified axes range.
Fixes issue #638.
2021-01-15 09:50:12 -08:00
gjr80
8d7a5abd03 Fix yaxis plot scaling (#567)
* Fix corner case where scale() returned unusable results when fmn==fmx and a non-None minscale is specified

* python3ise doctests

* doctest typo

* Added one more doctest

* Added tests for modified scale()

* Update change history
2020-06-27 14:52:22 -07:00
tkeffer@gmail.com
34f32810ff Convert fontpath to str before trying to load it. 2020-01-11 05:16:01 -07:00
Tom Keffer
98bde92048 Check for condition where both min and max are zero.
Fixes issue #463
2019-10-28 08:40:34 -07:00
Tom Keffer
1037aa5292 Reverted name back to _rel_approx_equal 2019-02-14 06:35:55 -08:00
Tom Keffer
01db79d31a Created unittests for weeplot.utilities 2019-02-14 06:23:36 -08:00
Tom Keffer
688a8427bb Machine translated bin/weeplot using python-modernize 2019-02-12 18:36:10 -08:00
Tom Keffer
8e47104a4e More literal unicode strings 2019-02-09 14:16:19 -08:00
Tom Keffer
c11431aff9 Check point 2019-02-09 11:33:58 -08:00
Tom Keffer
3e516ab944 Fixed bug that caused divide-by-zero error in plots. Issue #344. 2018-09-27 05:49:58 -07:00
Tom Keffer
a6c96c9680 More robust formatting for the tests 2018-09-25 05:40:53 -07:00
Tom Keffer
451aa5f960 corrected comment 2018-09-25 05:24:34 -07:00
Tom Keffer
4c391325a8 Fixed bug that could cause tick crowding when hardwiring y-axis min and
max values.
2017-04-17 10:06:00 -07:00
Tom Keffer
eddd084835 Correct one test case. Added a couple more tests. 2017-03-24 16:22:17 -07:00
Oga83
0ae29a4b61 Add 1-year increment for multi-year images 2016-04-07 18:06:32 +02:00
Tom Keffer
91e9864a98 Went through all the Python code, deleting all SVN $Id$ tags.
Standardized copyright notices, except for those I don't own.
2015-02-21 09:44:19 -08:00
Tom Keffer
1738d2ffed Reintegrate from the v3 branch.
V3.0.0b1
2014-11-29 18:15:24 +00:00
Tom Keffer
19b07707f1 Now caches font handles in order to work around a memory leak in PIL. 2014-01-18 01:54:57 +00:00
Tom Keffer
21dd6ab940 Plots less than 24 hours now have a variable increment length, that allows plots of length 16 hours. 2013-08-23 00:37:42 +00:00
Tom Keffer
b97bbcef63 Ported to Korora 19. Required "from PIL import ..." instead of a simple import. 2013-08-17 01:10:26 +00:00
Tom Keffer
dda8451f84 Shorter time increments now use one hour boundaries. 2013-05-17 20:05:12 +00:00
Tom Keffer
3ba15ea67a Plots shorter than 24 hours are now possible. 2013-05-17 19:55:37 +00:00
Tom Keffer
f33f0ad1bb Plots that show exactly 24 hours are now possible. However, the skin configuration file still does 27 hours. 2013-05-17 18:42:30 +00:00
Tom Keffer
16c0d225f4 Use attribute self.stn_info for lat/lon information.
Changed function parameter ordering to lat/lon.
Added doctests for function tobool(). Moved it to weeutil.weeutil
Presently crashes if sunset is after midnight UTC.
2013-01-18 19:27:04 +00:00
Tom Keffer
912f20760f Applied day-night patch from Matthew Wall. Images show a different color for nighttime. 2013-01-18 18:16:16 +00:00
Tom Keffer
61ec809b2e Added the ability to specify color using the notations #RRGGBB or an English descriptor (eg, 'yellow'). 2013-01-18 04:21:29 +00:00
Tom Keffer
6339c841d7 Added the ability to specify the "maximum gap" in a plot as a fraction of the x-axis scale. If the data contains a gap bigger than this amount, no connecting line will be drawn. Contributed by M. Wall. 2013-01-12 02:58:07 +00:00
Tom Keffer
b026888e25 Added additional tests for scale(). 2012-11-04 01:48:09 +00:00
Tom Keffer
032302b359 If the min and max y values in a plot are within a small relative difference, they are now declared equal. 2012-11-04 01:43:25 +00:00
Tom Keffer
8615d0f362 Moved get_font_handle 2012-04-16 00:42:52 +00:00
Tom Keffer
ea6e691174 Added finer control over the line plots. Can now add optional markers. The
marker_type  can be  'none' (the  default),  'cross', 'box',  'circle', or  'x'.
Also, line_type can  now either be 'solid' (the default)  or 'none' (for scatter
plots).
2012-03-16 01:13:55 +00:00
Tom Keffer
2eb2e7a447 Added scatter plots to weeplot utilities.
Simplified some of the logic in weeplot.
2012-03-14 23:30:39 +00:00
Tom Keffer
f485fee2af Changed reserved keyword 2012-03-14 18:40:23 +00:00
Tom Keffer
e4f98b8459 Suppressed warnings emitted by Pydev by using dummy names on unused variables. 2010-06-17 01:49:15 +00:00
Tom Keffer
07d629319f V1.7.0 hopefully 2010-04-12 22:41:45 +00:00