(Mar-21-2018, 12:23 PM)sparkz_alot Wrote: What have you tried? Have you looked at Matplotlib?Yea i did.
fig=plt.figure() ax=fig.add_subplot(111,label="1") ax2=fig.add_subplot(111,label="2",frame_on=False) ax.plot([t1],[i1],marker='.',markersize=3,color='blue') ax.set_xlabel("Time (ms)-id2", color='blue') ax.set_ylabel("Neuron Index-id2", color='blue') ax.tick_params(axis='x', colors='blue') ax.tick_params(axis='y', colors='blue') ax2.plot([t2],[i2],marker='.',markersize=3,color='red') ax2.xaxis.tick_top() ax2.yaxis.tick_right() ax2.set_xlabel('Time (ms)-id 3', color="red") ax2.set_ylabel('Neuron Index_id 3', color="red") ax2.xaxis.set_label_position('top') ax2.yaxis.set_label_position('right') ax2.tick_params(axis='x', colors="red") ax2.tick_params(axis='y', colors="red")doing like this i get inter-digitated plot. ie, the second axis(for x2 and y2) starts with 6.
I want to plot these with a single shared axis rather than 2 axes.
something like this.