Skip to content

About

Matplotlib extension for creating Smith charts with Python

Resources

Stars

2 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages