When plotting values of 2 different types (in my case voltage vs time and current vs time), is it possible to swap the y axes to the opposite side?

At the moment my circuit plot shows voltage on the left hand side and current on the right, but viewing the graphs would be improved by switching to current in the left and voltage on the right.

  • \$\begingroup\$ IIRC it's automatically managed, can't be changed. But, curious, why would you want this swap? \$\endgroup\$ – a concerned citizen Jun 1 '18 at 14:11
  • \$\begingroup\$ I'm currently plotting current through a capacitor over time, to compare to the voltage across it. It plots fine and gives me the values I expect, but the final voltage after the simulated would be easier to read if the voltage axis was on the right hand side. \$\endgroup\$ – Marissa Jun 1 '18 at 14:27

Unfortunately, that is handled by LTspice, so you can't directly do anything about it, but that doesn't mean you can't cheat:


For this random circuit, if you are interested in plotting the voltage to the right and the current to the left, then simply transform those quantities between themselves:

  • place a voltage source with zero voltage (and no parasitics specified), V1, in series with the branch which has the current you wish to plot, then a CCVS (current controlled voltage source, H in LTspice), H1, which will do just that: takes a current as input and outputs a voltage (for more details, see the manual -- LTspice > Circuit Elements > H);

  • add a VCCS (voltage controlled current source), G1, which does the reverse: takes a voltage as input and outputs a current. The nice part in simulation is that you can ground a current souce just fine, while allowing you to plot the current through it.

The result -- see the two plots: above there's the normal voltage, V(x) (green trace), and the current, I(V1) (red trace), while below there's the current, V(v) (black). and voltage, I(G1) (blue). The upper left Y-axis has the same range as the bottom right one, and vice-versa. The price to pay is that the current will be plotted as Volts, and the voltage as Amperes; if that doesn't bother you, this is one solution.

If, in the first step, adding an extra element is not to your liking (V1 + H1), then you can use a behavioural source of your choice with the expression V=I(C1) (for BV), or I=I(C1) Rpar=1 (for BI or BI2). For the behavioural current sources, the positive end will be at the tip of the arrow.

Actually, there's an even simpler method, same downsides (simply forgot it), about the same changes as above (keep only I1 and C1 from the circuit above):


  • for voltage, plot it, then R+Click on the trace's label, in the waveform window, then add (for the above example) V(x)*1A/1V;

  • for current, same as above, but with I(C1)*1V/1A.

This will avoid adding, but whenever you change, or delete these traces, you'll have to repeat the steps, or simply save the plot settings.

|improve this answer|||||
  • \$\begingroup\$ I was hoping there was a simpler solution that I was missing, given how new I am to LTSpice. This will do fine though. Thank you! \$\endgroup\$ – Marissa Jun 3 '18 at 9:16
  • \$\begingroup\$ @Marissa Unfortunately LTspice doesn't allow that, directly, but there's no reason one could not get creative. \$\endgroup\$ – a concerned citizen Jun 3 '18 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.