Monday, May 11, 2015

Python Graphing Tutorials in Trinket

Frequently you and your students need a reminder of the syntax for commonly used tasks in Python. Trinket can be used to post interactive Python code which your students can run in the browser or copy and paste for the purpose of running locally on their computer. Here are a few examples:

Graph Data in Python with Matplotlib

Graph Data and a Curve Fit in Python with Matplotlib


  1. This is a helpful resource - thanks! Do you know if it's possible to choose the axis minima/maxima? I'm trying to get the horizontal axis to start with 0, even if it's an inverse function where I can't plot that point. plot.xlim() doesn't seem to be implemented in Trinket

  2. I don't know why xlim() is not implemented in Trinket. I definitely suggest contacting the developers of Trinket and ask them to implement it. Since python is converted to javascript, my guess is that the converter can be hacked to add functionality.

  3. And indeed, I’m just always astounded concerning the remarkable things served by you. Some four facts on this page are undeniably the most effective I’ve had.

    python training in bangalore|