File:Al hydrolysis.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 1,133 × 749 pixels, file size: 64 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: The hydrolysis of the aluminium Lewis acid Al3+aq shows the species concentrations for a 5×10−6M solution of an aluminium salt as a function of pH. Each concentration is shown as a percentage of the total aluminium. The data (available in the talk page) was generated using HySS2009 software application and was plotted using python script given below.
    Date 30 July 2014, 13:35:59
    Source Own work
    Author Krishnavedala
    SVG development
    InfoField
     The SVG code is valid.
     This plot was created with Matplotlib.
    Source code
    InfoField

    Python code

    Source code
    #/usr/bin/python
    
    from numpy import loadtxt
    from matplotlib import pyplot as plt
    
    if __name__=="main":
    	X = loadtxt("data.txt", skiprows=16)
    
    	fig, ax = plt.subplots(1,1,figsize=(15,10))
    
    	ph = X[:,4]
    	Al = X[1,1]
    	Al1 = X[:,5] * 100. / Al
    	Al2 = X[:,6] * 100. / Al
    	Al3 = X[:,7] * 100. / Al
    	Al4 = X[:,8] * 100. / Al
    	Al5 = X[:,10] * 13 * 100. / Al
    	Al6 = X[:,3] * 100. / Al
    	Al7 = X[:,12] * 100. / Al
    
    	ax.plot(ph, Al1, linewidth=2, label=r"Al(OH)${}^{2+}$")
    	ax.plot(ph, Al2, linewidth=2, label=r"Al(OH)${}_2^+$")
    	ax.plot(ph, Al3, linewidth=2, label=r"Al(OH)${}_3$")
    	ax.plot(ph, Al4, linewidth=2, label=r"Al(OH)${}_4^-$")
    	ax.plot(ph, Al5, linewidth=2, label=r"Al${}_{13}$(OH)${}_{32}^{7+}$")
    	ax.plot(ph, Al6, linewidth=2, label=r"Al${}^{3+}$")
    	ax.plot(ph, Al7, linewidth=2, label=r"Al(OH)${}_3$(s)")
    
    	ax.set_ylim([0,100])
    	ax.grid(True)
    	ax.legend(frameon=False, ncol=3, loc=9)
    	ax.minorticks_on()
    	ax.set_ylabel("% formation relative to Al")
    	ax.set_xlabel("pH")
    
    	fig.savefig("Al hydrolysis.svg",bbox_inches="tight", pad_inches=.15)
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
    The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    30 July 2014

    image/svg+xml

    e51ec5699c10295290fe9581b8f2fcf540e5ed91

    65,861 byte

    749 pixel

    1,133 pixel

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current20:02, 4 January 2018Thumbnail for version as of 20:02, 4 January 20181,133 × 749 (64 KB)wikimediacommons>Krishnavedalareplotted and manually removed "W3 validation" error causing line

    There are no pages that use this file.