mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
update flatlaf to version 3.5
This commit is contained in:
parent
1774654fdd
commit
2447a89fe1
@ -15,7 +15,7 @@
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<freehep.version>2.4</freehep.version>
|
||||
<flatlaf.version>3.4.1</flatlaf.version>
|
||||
<flatlaf.version>3.5</flatlaf.version>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
|
||||
@ -1,10 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<MeteoInfo File="milconfig.xml" Type="configurefile">
|
||||
<Path OpenPath="D:\Working\MIScript\Jython\mis\traj">
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\plot_types"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\plot_types\contour"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\io\geotiff"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\io\grads"/>
|
||||
<Path OpenPath="D:\Working\MIScript\Jython\mis\chart\axis">
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\io\burf"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\io\grib"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\io\hdf"/>
|
||||
@ -13,20 +9,24 @@
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\satellite\modis"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\satellite"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\gui"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\plot_types"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\plot_types\plot"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\traj"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\chart\axes"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\chart"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\chart\axis"/>
|
||||
</Path>
|
||||
<File>
|
||||
<OpenedFiles>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\plot_types\plot\plot_cdata_3.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\traj\plot_traj.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\traj\plot_traj_bd.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\traj\plot_basic.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\chart\axis\axis_color.py"/>
|
||||
</OpenedFiles>
|
||||
<RecentFiles>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\plot_types\plot\plot_cdata_3.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\traj\plot_traj.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\traj\plot_traj_bd.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\traj\plot_basic.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\chart\axis\axis_color.py"/>
|
||||
</RecentFiles>
|
||||
</File>
|
||||
<Font>
|
||||
|
||||
Binary file not shown.
@ -93,8 +93,8 @@ class Axes(object):
|
||||
leftaxis = False
|
||||
topaxis = False
|
||||
rightaxis = False
|
||||
xreverse = kwargs.pop('xreverse', False)
|
||||
yreverse = kwargs.pop('yreverse', False)
|
||||
xinvert = kwargs.pop('xinvert', False)
|
||||
yinvert = kwargs.pop('yinvert', False)
|
||||
xaxistype = kwargs.pop('xaxistype', None)
|
||||
facecolor = kwargs.pop('bgcolor', None)
|
||||
facecolor = kwargs.pop('facecolor', facecolor)
|
||||
@ -113,10 +113,10 @@ class Axes(object):
|
||||
t_axis.setVisible(False)
|
||||
if not rightaxis:
|
||||
r_axis.setVisible(False)
|
||||
if xreverse:
|
||||
if xinvert:
|
||||
b_axis.setInverse(True)
|
||||
t_axis.setInverse(True)
|
||||
if yreverse:
|
||||
if yinvert:
|
||||
l_axis.setInverse(True)
|
||||
r_axis.setInverse(True)
|
||||
if not xaxistype is None:
|
||||
@ -1074,6 +1074,26 @@ class Axes(object):
|
||||
"""
|
||||
self._axes.getYAxis().setInverse(True)
|
||||
|
||||
def invert_xaxis(self):
|
||||
"""
|
||||
Invert x axis.
|
||||
"""
|
||||
b_axis = self.get_axis(Location.BOTTOM)
|
||||
t_axis = self.get_axis(Location.TOP)
|
||||
b_axis.setInverse(not b_axis.isInverse())
|
||||
t_axis.setInverse(not t_axis.isInverse())
|
||||
self.stale = True
|
||||
|
||||
def invert_yaxis(self):
|
||||
"""
|
||||
Invert y axis.
|
||||
"""
|
||||
l_axis = self.get_axis(Location.LEFT)
|
||||
r_axis = self.get_axis(Location.RIGHT)
|
||||
l_axis.setInverse(not l_axis.isInverse())
|
||||
r_axis.setInverse(not r_axis.isInverse())
|
||||
self.stale = True
|
||||
|
||||
def add_patch(self, patch):
|
||||
"""
|
||||
Add a patch.
|
||||
|
||||
Binary file not shown.
@ -44,7 +44,8 @@ __all__ = [
|
||||
'errorbar', 'figure', 'glfigure', 'figsize', 'patch', 'rectangle', 'fill', 'fill3', 'fill_between',
|
||||
'fill_betweenx', 'fimplicit3', 'webmap', 'gca', 'gcf', 'gc_collect', 'geoshow', 'get_figure',
|
||||
'gifaddframe', 'gifanimation', 'giffinish', 'grid', 'gridshow', 'gridshowm', 'hist', 'imshow',
|
||||
'imshowm', 'isosurface', 'legend', 'left_title', 'lighting', 'loglog', 'makecolors', 'makelegend','makemarkers',
|
||||
'imshowm', 'invert_xaxis', 'invert_yaxis', 'isosurface', 'legend', 'left_title', 'lighting', 'loglog',
|
||||
'makecolors', 'makelegend','makemarkers',
|
||||
'makesymbolspec', 'masklayer', 'material', 'mesh', 'meshc', 'model', 'particles', 'pcolor', 'pcolorm',
|
||||
'pie', 'plot', 'plot3', 'plotm', 'quiver', 'quiver3', 'quiverkey', 'quiverm', 'readlegend',
|
||||
'right_title', 'refresh', 'savefig', 'savefig_jpeg', 'scatter', 'scatter3', 'scatterm', 'semilogx',
|
||||
@ -819,8 +820,8 @@ def axes(*args, **kwargs):
|
||||
:param topaxis: (*boolean*) Optional, set top axis visible or not. Default is ``True`` .
|
||||
:param rightaxis: (*boolean*) Optional, set right axis visible or not. Default is ``True`` .
|
||||
:param xaxistype: (*string*) Optional, set x axis type as 'normal', 'lon', 'lat' or 'time'.
|
||||
:param xreverse: (*boolean*) Optional, set x axis reverse or not. Default is ``False`` .
|
||||
:param yreverse: (*boolean*) Optional, set y axis reverse or not. Default is ``False`` .
|
||||
:param xinvert: (*boolean*) Optional, set x axis inverted or not. Default is ``False`` .
|
||||
:param yinvert: (*boolean*) Optional, set y axis inverted or not. Default is ``False`` .
|
||||
|
||||
:returns: The axes.
|
||||
"""
|
||||
@ -1501,6 +1502,18 @@ def yreverse():
|
||||
draw_if_interactive()
|
||||
|
||||
|
||||
@_copy_docstring_and_deprecators(Axes.invert_xaxis)
|
||||
def invert_xaxis():
|
||||
g_axes.invert_xaxis()
|
||||
#draw_if_interactive()
|
||||
|
||||
|
||||
@_copy_docstring_and_deprecators(Axes.invert_yaxis)
|
||||
def invert_yaxis():
|
||||
g_axes.invert_yaxis()
|
||||
#draw_if_interactive()
|
||||
|
||||
|
||||
@_copy_docstring_and_deprecators(Axes.legend)
|
||||
def legend(*args, **kwargs):
|
||||
r = g_axes.legend(*args, **kwargs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user