Page 1 of 1

Swapping X and Y of a plot with grid value

Posted: Mon Jun 15, 2020 7:48 am
by admin
  1. Click on "Export values" (context menu on any plot with grid values), for instance to /tmp/grid
  2. Go into the properties of the layers, under the color map section, save it to /tmp/toto.pal
  3. Run the following script:

    Code: Select all

    cat grid | awk 'BEGIN{print "x y val"}!/x y/{print $2,$1,$3}' | figue -g -colormap /tmp/toto.pal
  4. Manually edit the properties of the axis to fit your needs.
  5. If you have to repeat it for several plots, you can save the make-up of a plot and add option '-m /tmp/your.mkup' in figue arguments.
Running the command line supposes that you are running Linux or Mac OS. If under Windows, you can install git for Windows. It is shipped with a bash terminal that supports almost all features.

Swapping X and Y in a more user friendly way is an option that will be probably added in the future.