Monday, April 11, 2016

Pasta Parametrization, High Resolution

Integrating (ha ha) Nested Tori back into life (of course I'm doing a lot of integrating, if I'm teaching, anyway). Lots of change was (and is) afoot.

Anyway, instead of continually getting peeved with Apple for not ever fixing any bugs in Grapher for over 10 years (a job that I would gladly take the mantle on, by the way: anyone at Apple listening??), I took matters into my own hands and started experimenting with some open source plotting libraries. In particular, I've taken somewhat of a liking for matplotlib, a famous Python package. The boon is, it can generate pdf files properly (unlike Grapher, which basically puts the bitmap into a pdf file and adds the extension .pdf, but when you zoom in, it's blocky and clearly still a bitmap). Honestly, though, it is in fact a lot more work (which was mitigated somewhat by defining some functions).

Here are the results for plotting the Pasta Parametrization in matplotlib (specifically, the mplot3d toolkit):


Of course, I should probably figure out how to control the lighting better: it doesn't look as good as Grapher's (at a scale for which the resolution issue is not a problem). And here are the matching formulas (at a larger size than the old version):


Happy parametrizing! (see here for the answer key, and here for the Python source)
(Astute readers may notice that the above images are actually still bitmaps... but that's an artifact of the blogging software, which does not natively display pdf's ... see here for the pdf for that)

4 comments:

  1. MyCleanPC holds your computer's registry in high regard. Our XP registry cleaner doesn't disturb any of the entries you need to run your day-to-day application. MyCleanPc Cost

    ReplyDelete
  2. Download Microsoft Visio Professional (2022) for Windows PC from SoftFamous. 100% Safe and Secure. Free Download (64-bit / 32-bit). How To Download Visio For Free

    ReplyDelete
  3. Trust is like an antique, once it's broken, it can never be replaced.” – Mouloud Benzadi · “Everyone suffers at least one bad betrayal Betrayed Broken Trust Quotes

    ReplyDelete