Last active
June 3, 2016 19:41
-
-
Save ptweir/d7f77b492710573ed005ca92ba09b568 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from figurefirst import FigureLayout | |
layout = FigureLayout('hello_world_layout.svg') | |
layout.make_mplfigures() | |
ax = layout.axes['ax_name']['axis'] | |
x = np.arange(10) | |
y = x**2 | |
ax.plot(x, y, lw=4) | |
layout.insert_figures('target_layer_name') | |
layout.write_svg('hello_world_output.svg') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment