Simen Husøy01/15/2023, 3:02 PM
to make bar plots etc., but I am having a hard time figuring out how to plot a image similar to how you do it with
in kedro viz. Anyone here who has knowledge of how to do this?
Jordan01/15/2023, 4:44 PM
should never need to be used in Kedro if you’re saving figures. Whatever node is creating the figure should just return the figure object. Then, assuming you have declared a dataset for the figure in the catalog (
etc) and used that as the node output in
, the visualisation should be available in Kedro Viz. However, the docs here say that the Kedro Viz figure visualisation only works up to 18.3. I just tried to get a Matplotlib figure to preview in Viz with my 18.4 project and it didn’t work, so I guess the docs are accurate.
Simen Husøy01/15/2023, 4:46 PM
Antony Milne01/16/2023, 9:38 AM
Rashida Kanchwala01/16/2023, 9:39 AM
Antony Milne01/16/2023, 9:40 AM
Rashida Kanchwala01/16/2023, 9:40 AM
Simen Husøy01/16/2023, 11:31 AM
Antony Milne01/16/2023, 12:44 PM
Simen Husøy01/16/2023, 12:55 PM
Rashida Kanchwala01/16/2023, 1:07 PM
Simen Husøy01/17/2023, 8:44 AM
type: <type of image plot?>
Jo Stichbury01/17/2023, 10:44 AM
Simen Husøy01/17/2023, 11:35 AM
Antony Milne01/18/2023, 3:08 PM
and then the node should return the plotly figure created by
image: type: plotly.JSONDataSet filepath: data/image.png
takes as input a plotly Figure. It doesn’t matter what type that is (scatter plot, bar plot, image, whatever - they’re all plotly Figures). N.B. @Rashida Kanchwala @Tynan this is an interesting thing I hadn’t thought of doing before - using plotly just to show images that you can zoom in/out of.
paths) and kedro 0.18.4. It should also work on kedro 0.18.3 fine with older versions of kedro-viz.
Tynan01/18/2023, 3:13 PM
Simen Husøy01/18/2023, 3:49 PM
etc. Is there support for plotting multiple figures in the same kedro dataset, or make it possible to scroll down, like a web page, to make room for all the subplots. (figure under to illustrate the problem when you want to plot 50+ images):
Rashida Kanchwala01/20/2023, 3:20 PM
Simen Husøy01/21/2023, 5:54 PM