vMeijin / pySmithPlot

Matplotlib extension for creating Smith charts with Python
127 stars 73 forks source link

Convert purely real input to complex #3

Closed SjoerdOptLand closed 8 years ago

SjoerdOptLand commented 10 years ago

When plotting a simple point, I noticed that passing a purely real number bugs. The first point ends up at 2.5 (OK), the second point at 2.5j (NOK). MWE:

import sys
sys.path.append("pySmithPlot")

from matplotlib import pyplot
import smithplot

axes = pyplot.subplot(1, 1, 1, projection='smith', axes_norm=1.0)
pyplot.plot(2.5+0j, markevery=5, label='2.5+0j')
pyplot.plot(2.5, markevery=5, label='2.5')
pyplot.legend()
pyplot.show()

purely_real_argument

vMeijin commented 10 years ago

I will leave it open for now, because I dont really have time in the near future.

vMeijin commented 8 years ago

Please check the new release version 0.2.