Skip to content

Commit

Permalink
fix: Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
giulio ungaretti committed Feb 23, 2017
1 parent 53ace29 commit a29a1cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qcodes/plots/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ def add(self, *args, updater=None, **kwargs):
into `x`, `y`, and optionally `z`, these are passed along to
self.add_to_plot.
To use custom labels and units pass for example:
>>> plot.add(x=set, y=amplitude, xlabel=("set", "s"), ylabel= ("Amplitude", "V"))
plot.add(x=set, y=amplitude,
xlabel="set"
xunit="V",
ylabel= "Amplitude",
yunit ="V")
Array shapes for 2D plots:
x:(1D-length m), y:(1D-length n), z: (2D- n*m array)
Expand Down

0 comments on commit a29a1cd

Please sign in to comment.