mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
bugfix for y reverse section plot in MeteoInfoMap
This commit is contained in:
parent
19189dfa4d
commit
7a2c7b7e63
@ -34,5 +34,5 @@
|
||||
</Font>
|
||||
<LookFeel DockWindowDecorated="true" LafDecorated="true" Name="FlatDarkLaf"/>
|
||||
<Figure DoubleBuffering="true"/>
|
||||
<Startup MainFormLocation="-7,0" MainFormSize="1366,770"/>
|
||||
<Startup MainFormLocation="-7,0" MainFormSize="1433,849"/>
|
||||
</MeteoInfo>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<MeteoInfo File="config.xml" Type="configurefile">
|
||||
<Path OpenPath="D:\Temp\traj\Sample"/>
|
||||
<Path OpenPath="D:\Temp\nc"/>
|
||||
<Font>
|
||||
<TextFont FontName="YaHei Consolas Hybrid" FontSize="14"/>
|
||||
<LegendFont FontName="宋体" FontSize="12"/>
|
||||
|
||||
@ -1966,14 +1966,7 @@ public class FrmSectionPlot extends javax.swing.JFrame {
|
||||
setXYCoords(_gridData);
|
||||
|
||||
if (this.jCheckBox_YReverse.isVisible() && this.jCheckBox_YReverse.isSelected()) {
|
||||
double[][] aGD = (double[][]) _gridData.getData().clone();
|
||||
int yn = _gridData.getYNum();
|
||||
int xn = _gridData.getXNum();
|
||||
for (int i = 0; i < yn; i++) {
|
||||
for (int j = 0; j < xn; j++) {
|
||||
_gridData.setValue(i, j, aGD[yn - i - 1][j]);
|
||||
}
|
||||
}
|
||||
_gridData.yReverse();
|
||||
}
|
||||
|
||||
if (!_useSameLegendScheme) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user