kaberett: Trans symbol with Swiss Army knife tools at other positions around the central circle. (Default)
[personal profile] kaberett
Data from Shannon, R. D. (1976). Acta Cryst. A32, 751-767.

#!/usr/bin/python

import csv, math, sys, re, numpy, scipy, matplotlib
from pylab import *
rc('text', usetex=True)
rcParams['text.latex.preamble'].append(r'\usepackage{tipa}')
#rcParams['figure.figsize'] = 8.1, 3.8

x = [0,0.57,0.73,0.54,0.63,0.78,0.49,0.645,0.55,0.69,0.6,1.5,0.75,0.885,0]
xerr = [None,0.0855,0.1095,0.081,0.0945,0.117,0.0735,0.09675,0.0825,0.1035,0.09,None,None,None,None]
y = [14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
ytext = ["","Tl$^{3+}$ (VI)","Tl$^{3+}$ (IV)","Tl$^+$ (VI)","Ni$^{3+}$ (VI)","Ni$^{2+}$ (VI)","Ni$^{2+}$ (IV)","Fe$^{3+}$ (VI)","Fe$^{3+}$ (IV)","Fe$^{2+}$ (VI)","Fe$^{2+}$ (IV)","Cu$^{3+}$ (VI)","Cu$^{2+}$ (VI)","Cu$^{2+}$ (IV)",""]
           
fig = plt.figure()
loc = matplotlib.ticker.MultipleLocator(base=1)
ax = plt.subplot(111)
ax.yaxis.set_major_locator(loc)
ax.set_yticklabels(ytext)
 
# plot a graaaaaaaaphs
for i in range(len(x)):
    ax.plot(x[i], y[i], 'kx', markersize=5, markeredgewidth=1, zorder=5)
    errorbar(x[i], y[i], xerr = xerr[i], fmt=None,ecolor='k')

ylabel("Ion (coordination number)")
xlabel("Ionic radius (\\AA)")

ax.set_ylim([0,14])

savefig('Dropbox/PhD/writing/Exercises/ionic-radii.png')

Profile

kaberett: Trans symbol with Swiss Army knife tools at other positions around the central circle. (Default)
kaberett

January 2026

M T W T F S S
    12 3 4
5678 910 11
12 1314 15 16 17 18
19 20 21 2223 2425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Powered by Dreamwidth Studios