Simple Curve PlotΒΆ

Sample Curve

Out:

/home/docs/checkouts/readthedocs.org/user_builds/attune/envs/latest/lib/python3.6/site-packages/WrightTools/units.py:133: UserWarning: conversion None to wn not valid: returning input
  current_unit, destination_unit
/home/docs/checkouts/readthedocs.org/user_builds/attune/envs/latest/lib/python3.6/site-packages/WrightTools/units.py:133: UserWarning: conversion None to wn not valid: returning input
  current_unit, destination_unit
/home/docs/checkouts/readthedocs.org/user_builds/attune/envs/latest/lib/python3.6/site-packages/attune/curve/_base.py:453: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance.  In a future version, a new instance will always be created and returned.  Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
  ax = plt.subplot(lowest_ax_dictionary[curve.name])
/home/docs/checkouts/readthedocs.org/user_builds/attune/envs/latest/lib/python3.6/site-packages/attune/curve/_base.py:465: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance.  In a future version, a new instance will always be created and returned.  Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
  ax = plt.subplot(ax)

import attune
import numpy as np

d0 = attune.Dependent(np.linspace(-5, 5, 20), "One Dependent")
d1 = attune.Dependent(np.sin(np.linspace(-4, 0, 20)), "Two Dependent")
s = attune.Setpoints(np.linspace(1300, 1400, 20), "Some Setpoints", "wn")
c = attune.Curve(s, [d0, d1], "Sample Curve")

c.plot()

Total running time of the script: ( 0 minutes 0.273 seconds)

Gallery generated by Sphinx-Gallery