Commit cbff79d4 authored by Sean's avatar Sean
Browse files

Add CLI figure example

parent 7cfb86ad
......@@ -26,6 +26,9 @@ ZEROPYTHONDEPS = $(STATICDIR)/liso-input-response.svg $(STATICDIR)/solution-comb
ZEROLISODEPS = $(STATICDIR)/liso-two-noises.svg
# Native/LISO script comparisons.
ZEROLISOCOMPAREDEPS = $(STATICDIR)/liso-compare-response.svg
# CLI example plots.
CLIOPAMPGAINDEP = $(STATICDIR)/cli-opamp-gain.svg
ZEROCLIPLOTDEPS = $(CLIOPAMPGAINDEP)
.PHONY: help
help:
......@@ -67,11 +70,19 @@ apidoc:
sphinx-apidoc -o developers/api -e ../zero
.PHONY: static
static: plots
static: plots cli-plots
.PHONY: plots
plots: $(ZEROSTATICDEPS) $(ZEROPYTHONDEPS) $(ZEROLISODEPS) $(ZEROLISOCOMPAREDEPS)
.PHONY: cli-plots
cli-plots: $(ZEROCLIPLOTDEPS)
# CLI op-amp gain plot.
$(CLIOPAMPGAINDEP):
@echo "Generating $@"
zero library search "gbw > 800M & ((vnoise < 10n & inoise < 10p) | (vnoise < 100n & inoise < 1p)) & model != OP00" --no-plot-gain --save-gain-figure $@ --fstop 1M
# Generate SVG plots of Zero output using Python script.
$(STATICDIR)/%.svg: $(STATICDIR)/zero-python/%.py
@echo "Generating $@ from $<"
......
......@@ -175,6 +175,14 @@ if you like) with the ``--save-voltage-noise-figure``, ``--save-current-noise-fi
``--save-gain-figure`` options, respectively. Figures can be saved without being displayed with
``--no-plot-voltage-noise``, ``--no-plot-current-noise`` and ``--no-plot-gain``, respectively.
The following command will produce the plot below.
.. code-block:: bash
$ zero library search "gbw > 800M & ((vnoise < 10n & inoise < 10p) | (vnoise < 100n & inoise < 1p)) & model != OP00" --plot-gain --fstop 1M
.. image:: /_static/cli-opamp-gain.svg
Command reference
-----------------
......
Markdown is supported
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