Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_plot_seaborn_png(self):
"""Test PNG output from Matplotlib."""
subcommands.subcmd_plot(self.argsdict["seaborn_png"])
plt.close("all")
def test_plot_seaborn_pdf(self):
"""Test PDF output from Matplotlib."""
subcommands.subcmd_plot(self.argsdict["seaborn_pdf"])
plt.close("all")
def test_plot_mpl_png(self):
"""Test PNG output from Matplotlib."""
subcommands.subcmd_plot(self.argsdict["mpl_png"])
plt.close("all")
def test_plot_mpl_jpg(self):
"""Test JPG output from Matplotlib."""
subcommands.subcmd_plot(self.argsdict["mpl_jpg"])
plt.close("all")
def test_plot_seaborn_svg(self):
"""Test SVG output from Matplotlib."""
subcommands.subcmd_plot(self.argsdict["seaborn_svg"])
plt.close("all")
def test_plot_mpl_pdf(self):
"""Test PDF output from Matplotlib."""
subcommands.subcmd_plot(self.argsdict["mpl_pdf"])
plt.close("all")
def test_plot_mpl_svg(self):
"""Test SVG output from Matplotlib."""
subcommands.subcmd_plot(self.argsdict["mpl_svg"])
plt.close("all")
parser.add_argument(
"--formats",
dest="formats",
action="store",
default="png",
help="graphics output format (seaborn/mpl)",
)
parser.add_argument(
"--method",
dest="method",
action="store",
default="seaborn",
help="graphics method to use for plotting",
choices=["seaborn", "mpl", "plotly"],
)
parser.set_defaults(func=subcommands.subcmd_plot)
parser.add_argument(
"--formats",
dest="formats",
action="store",
default="png",
help="graphics output format (pdf/png/svg/jpg)",
)
parser.add_argument(
"--method",
dest="method",
action="store",
default="seaborn",
help="graphics method to use for plotting",
choices=["seaborn", "mpl", "plotly"],
)
parser.set_defaults(func=subcommands.subcmd_plot)