dimanche 1 juin 2014

Arrows in Polar Matplotlib Plot


Vote count:

0




I am trying to plot the phasors of the voltage across the resistor, capacitor, and inductor in an series R-L-C circuit. I have done all of the calculations and I can get a decent plot with just the normal ax.plot(theta,r,....).


I would like to make the phasor vectors look like arrows. I have been trying to use ax.arrow(0,0,theta,magnitude) but it looks like a line still. The gist to the code that I have written is here : GIST


My image that I create is


I tried to follow the example that I found on this list because it is very similar to what I want to accomplish, it produces the following image:



When I run their code on my computer I get



I am on Xubuntu 14.04 and running matplotlib 1.3.1. I do see that the example I am using was using matplotlib 0.99 in 2009.


Any help would be much appreciated.



asked 47 secs ago






Aucun commentaire:

Enregistrer un commentaire