Commit c2b5f47c authored by Hafiz Emin Kosar's avatar Hafiz Emin Kosar
Browse files

- fixed bug where order of conjugated poles/zeroes would not show up

parent 45f26ae9
......@@ -260,18 +260,24 @@ class pzPlot():
# plot / update order if necessary
if self.action == 'add' or self.action == 'del':
if pPoint.order == 1 and pPoint.h_order is not None:
pPoint.h_order.remove()
pPoint.h_order[0].remove()
pPoint.h_order[1].remove()
pPoint.h_order = None
elif pPoint.order == 2:
if pPoint.h_order is None:
align = 'left' if self.mode == 'p' else 'right'
pPoint.h_order = self.ax.text(pPoint.p.real, abs(pPoint.p.imag), '({:1.0f})'.format(pPoint.order),
fontsize=12, horizontalalignment=align, verticalalignment='bottom')
fontsize=12, horizontalalignment=align, verticalalignment='bottom'), \
self.ax.text(pPoint.p.real, -abs(pPoint.p.imag),
'({:1.0f})'.format(pPoint.order), fontsize=12,
horizontalalignment=align, verticalalignment='bottom')
else:
pPoint.h_order.set_text('({:1.0f})'.format(pPoint.order))
pPoint.h_order[0].set_text('({:1.0f})'.format(pPoint.order))
pPoint.h_order[1].set_text('({:1.0f})'.format(pPoint.order))
elif pPoint.order > 2:
pPoint.h_order.set_text('({:1.0f})'.format(pPoint.order))
pPoint.h_order[0].set_text('({:1.0f})'.format(pPoint.order))
pPoint.h_order[1].set_text('({:1.0f})'.format(pPoint.order))
# elif self.action == 'roc':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment