-
Notifications
You must be signed in to change notification settings - Fork 3
/
linlogplot.py
29 lines (26 loc) · 1021 Bytes
/
linlogplot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
def linlogplot(x,y):
fig, axs = plt.subplots(2, 2, gridspec_kw = {'wspace':0, 'hspace':0}, figsize=(10, 10))
axs[0, 0].scatter(x, y, s=0.25)
axs[0, 0].set_yscale('log')
axs[0, 0].set_xlim(0, 1)
axs[0, 0].set_ylim(1.00001, 10)
axs[0, 0].xaxis.set_visible(False)
axs[0, 1].scatter(x, y, s=0.25, 'tab:orange')
axs[0, 1].set_xlim(1.00001, 10)
axs[0, 1].set_ylim(1.00001, 10)
axs[0, 1].set_xscale('log')
axs[0, 1].set_yscale('log')
axs[0, 1].spines['left'].set_visible(False)
axs[0, 1].xaxis.set_visible(False)
axs[0, 1].yaxis.set_visible(False)
axs[1, 0].scatter(x, y, s=0.25, 'tab:green')
axs[1, 0].set_xlim(0, 1)
axs[1, 0].set_ylim(0, 1)
axs[1, 0].spines['top'].set_visible(False)
axs[1, 1].scatter(x, y, s=0.25, 'tab:red')
axs[1, 1].set_xscale('log')
axs[1, 1].set_xlim(1.00001, 10)
axs[1, 1].set_ylim(0, 1)
axs[1, 1].spines['left'].set_visible(False)
axs[1, 1].spines['top'].set_visible(False)
axs[1, 1].set_yticks([])