Okay, I just made a simple example. You can see it's not perfect as there is a small gap between the lines... you can kindof fix this by fiddling the ranges but it's a bit tricky.
Any suggestions to get it looking right?
Code:
from pylab import *
t = arange(1.0, 1000.0)
y = sin(0.03*t)
#creates a frame with background
allaxes = axes([0.1, 0.1, 0.8, 0.8])
allaxes.xaxis.set_visible(False)
allaxes.yaxis.set_visible(False)
#this is the logarithmic bit
logbit = axes([0.1, 0.1, 0.4, 0.8],frameon=False)
logbit.yaxis.set_visible(False)
semilogx(t[0:199], y[0:199])
ax1=axis([1.0, 199.0, -1.5, 1.5])
#this is the linear bit
linbit = axes([0.5, 0.1, 0.4, 0.8], frameon=False)
linbit.yaxis.set_visible(False)
plot(t[200:], y[200:])
axis([200.0, 1000.0, -1.5, 1.5])
#this plots the y axis
justxaxes = axes([0.1, 0.1, 0.8, 0.8], frameon=False, sharey=linbit)
justxaxes.xaxis.set_major_locator(NullLocator())
show()
Bookmarks