Hi Luigi,
This option is not currently available. All layers that show graphics are hardly linked to their X and Y. Being able to exchange the role of X and Y would imply a soft link at some point between data and screen plots. The transformation of coordinates is executed billions of times and adding a simple test to check how X and Y are mapped would lead to a tiny additional delay, but multiplied it can be no so tiny. These words are for plots managed by the applications: you would want to see updates of the rotated plots.
A more basic way to implement it would be to add a function to swap the properties of X and Y axes and the data plot. This way there is no issue regarding display efficiency but it is more static. It can be done only to unmanaged plots, copied in
figue for instance.
A third way without adding any new implementation consists in exporting the grid data of H/V rotate results. The file is a text file with three columns: X, Y and value. Swap X and Y columns, For example,
awk does it easily (no available in
GeopsyLand). Under windows, the terminal provided by package
git provides a decent bash terminal with
awk.
Code: Select all
cat grid.file | awk '{if($1=="x") print else print $2,$1,$3}' > grid-swaped.file
Use this swapped file to create a new plot in
figue. Fine in
GeopsyLand.
Copying properties from the original plot is not straight forward because axes are swapped.