invert axes when plotting 2d array #5505
-
Hi guys, Sorry if this is a basic question but I can't find the answer. I am calling the method My workflow: import xarray as xr
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
filename = "/somewhere/something.nc"
ds = xr.open_dataset(filename)
ze2d = ds.Ze.isel()
ze2d.plot() where
Does anyone know a convenient way to do so? Thanks a lot |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It was as easy as calling the |
Beta Was this translation helpful? Give feedback.
-
instead of using ze2d.plot.imshow(x="time") |
Beta Was this translation helpful? Give feedback.
instead of using
transpose
, you can also use thex
ory
parameters. In your case: