For 2021 - online Python 3 training - see ((here)).
Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.
Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Graphing presentations in Python - huge data, numpy and matplotlib
A picture paints a thousand words. Our server log files for February are 1.6 Gbytes in size, with 5.3 million individual requests. How busy are we at what times of day? I've been looking at this through matplotlib in Python - here's a wireframe of the month - days on the X axis, hour of the day on the Y axis, and height being the accesses per hour:
Rather that extract the data each time we draw a graph, I've written the program in two stages - a data extraction routine that writes our a .json object (source code [here]
) and the graph drawing program [here]
. The plotting program (also used to illustrate Python graphics and numpy on last week's course) produces four different displays - here's another:
Data's available if you wish to run the graph program - [here]
. And if you want to learn about numpy
, let me know before your Python course and we''ll add an extra session on the penultimate evening of your public course, or build it in to your private course. See [here]
. (written 2015-02-28)
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articlesY113 - Python and SQL databases 
Connecting Python to sqlite and MySQL databases - (2010-04-28) 
Model - View - Controller demo, Sqlite - Python 3 - Qt4 - (2010-04-29) 
Factory methods and SqLite in use in a Python teaching example - (2010-05-29) 
Joining a MySQL table from within a Python program - (2010-06-02) 
A framework with python - Django - first steps - (2011-01-17) 
Steering our Python courses towards wxPython, SQLite and Django - (2011-01-19) 
SQL databases from Python - an SQLite example - (2013-03-02) 
Cacheing class for Python - using a local SQLite database as a key/value store - (2013-05-14) 
Accessing a MySQL database from Python with mysql.connector - (2015-02-21) 
SQLAlchemy - first examples with a Python Object Relationship Mapping system - (2015-10-14) 
example of SQLite using a local database file through SQLalchemy - (2015-10-14)Y118 - Python - numpy, scipy and matplotlib 
What are numpy and scipy? - (2010-10-09) 
Loading and saving data - Python / numpy - (2010-10-09) 
Matplotlib - graphing in Python - teaching examples - (2010-10-10) 
Arrays v Lists - what is the difference, why use one or the other - (2010-10-10) 
3D graphics - web site usage - simple matplotlib and python example - (2010-10-12) 
Learning more about our web site - and learning how to learn about yours - (2011-12-17) 
A first graph with Matplotlib in Python - (2015-02-22)
Some other Articles
Spike solution, refactoring into encapsulated object methods - good design practiseWhat is the difference between a function and a method?Overnight accommodation in Melksham - if Well House Manor is full!Combining tests into suites, and suites into bigger suites - Python and unittestGraphing presentations in Python - huge data, numpy and matplotlibElements of an exception in Python - try, except, else, finallySeventh stay away this year - and it's still only February!Mutable v Immuatble objects in Python, and the implicationReading command line parameters in Python
4759 posts, page by page
Link to page ... 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, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page
This is a page archived from The Horse's Mouth at
the diary and writings of Graham Ellis.
Every attempt was made to provide current information at the time the
page was written, but things do move forward in our business - new software
releases, price changes, new techniques. Please check back via
our main site for current courses,
prices, versions, etc - any mention of a price in "The Horse's Mouth"
cannot be taken as an offer to supply at that price.
Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).