Simen Husøy
01/15/2023, 3:02 PMplotly.PlotlyDataSet 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 plt.imshow(...) in kedro viz. Anyone here who has knowledge of how to do this?Jordan
01/15/2023, 4:44 PMplt.imshow() 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 (plotly.PlotlyDataSet, matplotlib.MatplotlibWriter etc) and used that as the node output in pipeline.py, 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øy
01/15/2023, 4:46 PMAntony Milne
01/16/2023, 9:38 AMRashida Kanchwala
01/16/2023, 9:39 AMAntony Milne
01/16/2023, 9:40 AMRashida Kanchwala
01/16/2023, 9:40 AMSimen Husøy
01/16/2023, 11:31 AMAntony Milne
01/16/2023, 12:44 PMSimen Husøy
01/16/2023, 12:55 PMSimen Husøy
01/16/2023, 12:57 PMRashida Kanchwala
01/16/2023, 1:07 PMSimen Husøy
01/17/2023, 8:44 AMtype: <type of image plot?> should be.Jo Stichbury
01/17/2023, 10:44 AMJo Stichbury
01/17/2023, 10:44 AMJo Stichbury
01/17/2023, 10:44 AMSimen Husøy
01/17/2023, 11:35 AMAntony Milne
01/18/2023, 3:08 PMimage:
type: plotly.JSONDataSet
filepath: data/image.png
and then the node should return the plotly figure created by px.imshow() .Antony Milne
01/18/2023, 3:10 PMplotly.JSONDataSet 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.Antony Milne
01/18/2023, 3:10 PMkedro_datasets paths) and kedro 0.18.4. It should also work on kedro 0.18.3 fine with older versions of kedro-viz.Tynan
01/18/2023, 3:13 PMSimen Husøy
01/18/2023, 3:49 PMweb-agg 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 Kanchwala
01/20/2023, 3:20 PMSimen Husøy
01/21/2023, 5:54 PM