Jae-Joon Lee wrote:
> Contour will work as expected if the axes is in log scale. See below.
>
> z = np.arange(100).reshape((10,10))
> x = np.logspace(0, 4, 10)
> y = np.logspace(0, 4, 10)
>
> ax1 = subplot(121)
> ax1.contour(np.log10(x), np.log10(y), z)
>
> ax2 = subplot(122)
> ax2.set_xscale("l
Contour will work as expected if the axes is in log scale. See below.
z = np.arange(100).reshape((10,10))
x = np.logspace(0, 4, 10)
y = np.logspace(0, 4, 10)
ax1 = subplot(121)
ax1.contour(np.log10(x), np.log10(y), z)
ax2 = subplot(122)
ax2.set_xscale("log")
ax2.set_yscale("log")
ax2.contour(x,
Is there any way to simply make a contour plot with logarithmic axes
using matplotlib? I found a workaround by plotting log10(x), log10(y),
but it'd be nicer if it was more direct.
As someone new to matplotlib (experienced in IDL) I'm finding much to
like, but some things are more difficult for