aylons / mwavepy

Automatically exported from code.google.com/p/mwavepy
GNU General Public License v3.0
1 stars 0 forks source link

Clip smith chart #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to clip the smith chart construction circles outside of the 
desired range.

This can be done like this in plotting.py:

# loop though contours and draw them on the given axes
clipc = Circle( [0,0], smithR, visible=False)
ax1.add_patch( clipc)   
for currentContour in contour:
    cc=ax1.add_patch(currentContour)
    cc.set_clip_path(clipc)

Original issue reported on code.google.com by juergen....@gmail.com on 6 Jan 2012 at 10:58

GoogleCodeExporter commented 8 years ago
great suggestion, thanks! i added your code to current version on svn. 

it would be nice to have the contours determined dynamically based on the 
radius, but i couldnt think of a good way to do this when i wrote the function. 
thanks for the improvement!

alex

Original comment by alexande...@gmail.com on 6 Jan 2012 at 2:04