Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
remove text from baseline plots
Browse files Browse the repository at this point in the history
update plot tests with `remove_text`
  • Loading branch information
suyashb95 committed Nov 1, 2018
1 parent 837a657 commit d0edd43
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
Binary file modified tests/files/baseline_plots/test_contour_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/files/baseline_plots/test_joint_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/files/baseline_plots/test_line_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/files/baseline_plots/test_table_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/files/baseline_plots/test_text_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,39 @@


@pytest.mark.mpl_image_compare(
baseline_dir="files/baseline_plots", tolerance=15)
baseline_dir="files/baseline_plots", remove_text=True)
def test_text_plot():
filename = os.path.join(testdir, "foo.pdf")
tables = camelot.read_pdf(filename)
return plot_text(tables[0]._text)


@pytest.mark.mpl_image_compare(
baseline_dir="files/baseline_plots", tolerance=15)
baseline_dir="files/baseline_plots", remove_text=True)
def test_contour_plot():
filename = os.path.join(testdir, "foo.pdf")
tables = camelot.read_pdf(filename)
return plot_contour(tables[0]._image)


@pytest.mark.mpl_image_compare(
baseline_dir="files/baseline_plots", tolerance=15)
baseline_dir="files/baseline_plots", remove_text=True)
def test_table_plot():
filename = os.path.join(testdir, "foo.pdf")
tables = camelot.read_pdf(filename)
return plot_table(tables[0])


@pytest.mark.mpl_image_compare(
baseline_dir="files/baseline_plots", tolerance=15)
baseline_dir="files/baseline_plots", remove_text=True)
def test_line_plot():
filename = os.path.join(testdir, "foo.pdf")
tables = camelot.read_pdf(filename)
return plot_line(tables[0]._segments)


@pytest.mark.mpl_image_compare(
baseline_dir="files/baseline_plots", tolerance=15)
baseline_dir="files/baseline_plots", remove_text=True)
def test_joint_plot():
filename = os.path.join(testdir, "foo.pdf")
tables = camelot.read_pdf(filename)
Expand Down

0 comments on commit d0edd43

Please sign in to comment.