From efb72d8fc314567dc4612546a3ea8017104b7c0f Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sat, 20 Jun 2020 22:41:33 +0300 Subject: [PATCH] Improve 2D scatter example, show 3 different plot styles --- examples/reporting/scatter_hist_confusion_mat_reporting.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/reporting/scatter_hist_confusion_mat_reporting.py b/examples/reporting/scatter_hist_confusion_mat_reporting.py index cb2b4e8d..91f0f6dc 100644 --- a/examples/reporting/scatter_hist_confusion_mat_reporting.py +++ b/examples/reporting/scatter_hist_confusion_mat_reporting.py @@ -68,6 +68,9 @@ def report_plots(logger, iteration=0): yaxis="title y", ) + scatter2d = np.hstack( + (np.atleast_2d(np.arange(0, 10)).T, np.random.randint(10, size=(10, 1))) + ) # report 2d scatter plot with markers logger.report_scatter2d( "example_scatter", @@ -79,6 +82,9 @@ def report_plots(logger, iteration=0): mode='markers' ) + scatter2d = np.hstack( + (np.atleast_2d(np.arange(0, 10)).T, np.random.randint(10, size=(10, 1))) + ) # report 2d scatter plot with markers logger.report_scatter2d( "example_scatter",