Skip to content

Matplotlib extension for creating Smith charts with Python

Notifications You must be signed in to change notification settings

agardelein/pySmithPlot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pySmithPlot

Matplotlib extension for creating Smith charts with Python

Library for plotting a fully automatic Smith Chart with various customizable parameters and well selected default values. It also provides the following modifications and features:

- circle shaped drawing area with labels placed around 
- plot() accepts complex numbers and numpy.ndarray's
- lines can be automatically interpolated in evenly spaced steps 
- linear connections can be transformed to arcs
- start/end markers of lines can be modified and rotated
- gridlines are arcs, which is more efficient
- optional fancy grid with adaptive spacing
- own tick locators for nice axis labels

For making a Smith Chart plot, it is sufficient to import smithplot and create a new subplot with projection set to 'smith'. (Requires matplotlib version 1.2)

A short example can be found in the example directory and testet with:

`python smith_test.py`

For more details, take a look into smithplot/smithaxes.py.

example/smith_example.py creates a bunch of Smith charts with varying parameters for comparision. Here are the sample plots:

Gridstyles Gridstyles - PDF

Fancy Threshold Fancy Threshold - PDF

Grid Locators Grid Locators - PDF

Marker Modification Marker Modification - PDF

Interpolation Interpolation - PDF

Scaling Scaling - PDF

VSWR Circles VSWR Circles - PDF

Misc Misc - PDF

About

Matplotlib extension for creating Smith charts with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%