Closed nadijagraca closed 2 months ago
Configuration explain return_elements Outcome
fig = vizro_ai.plot(...)
❌ ❌ Fig not displayed,fig.show()
neededfig = vizro_ai.plot(...)
✅ ❌ Fig not displayed,fig.show()
needed, MD displayedfig = vizro_ai.plot(...)
❌ ✅ Fig not displayed,fig.show()
needed --> Incorrect? This would beed fig.figure.show()?fig = vizro_ai.plot(...)
✅ ✅ Fig not displayed,fig.show()
needed, MD displayed --> Incorrect? This would beed fig.figure.show()?vizro_ai.plot(...)
❌ ❌ Fig displayed, MD and PlotOutputs printed --> Incorrect? Why would anything be printed?vizro_ai.plot(...)
✅ ❌ Fig and MD displayedvizro_ai.plot(...)
❌ ✅ Fig not displayed, PlotOutputs printedvizro_ai.plot(...)
✅ ✅ Fig not displayed, MD and PlotOutputs displayed --> MD displayed and PlotOutputs printed?
After our PS last week, this is what I expected? Do you agree @Anna-Xiong @nadijagraca ?
Configuration explain return_elements Outcome
fig = vizro_ai.plot(...)
❌ ❌ Fig not displayed,fig.show()
neededfig = vizro_ai.plot(...)
✅ ❌ Fig not displayed,fig.show()
needed, MD displayedfig = vizro_ai.plot(...)
❌ ✅ Fig not displayed,fig.show()
needed --> Incorrect? This would beed fig.figure.show()?fig = vizro_ai.plot(...)
✅ ✅ Fig not displayed,fig.show()
needed, MD displayed --> Incorrect? This would beed fig.figure.show()?vizro_ai.plot(...)
❌ ❌ Fig displayed, MD and PlotOutputs printed --> Incorrect? Why would anything be printed?vizro_ai.plot(...)
✅ ❌ Fig and MD displayedvizro_ai.plot(...)
❌ ✅ Fig not displayed, PlotOutputs printedvizro_ai.plot(...)
✅ ✅ Fig not displayed, MD and PlotOutputs displayed --> MD displayed and PlotOutputs printed?After our PS last week, this is what I expected? Do you agree @Anna-Xiong @nadijagraca ?
@Anna-Xiong What I meant is that there are 4 cases in Nadjas description that are either wrong, or the actual behaviour is wrong. I was just thinking that you could clarify whether its just the description that is wrong, or the actual behaviour (look for the --> above)
Hi @maxschulz-COL i think overall it aligns with what we discussed a week ago. Only minor difference is this one
Configuration | explain | return_elements | Outcome |
---|---|---|---|
vizro_ai.plot(...) | ❌ | ❌ | Fig displayed, MD and PlotOutputs printed |
MD and PlotOutputs printed is not true here, but fig is displayed. Is there any particular case you observed to be different from what we discussed?
Description
Issue:
return_elements=False
and the output is not assigned to a figure.fig = vizro_ai.plot(...)
fig.show()
neededfig = vizro_ai.plot(...)
fig.show()
needed, MD displayedoutput_dataclass = vizro_ai.plot(...)
output_dataclass.figure.show()
neededoutput_dataclass = vizro_ai.plot(...)
output_dataclass.figure.show()
needed, MD displayedvizro_ai.plot(...)
vizro_ai.plot(...)
vizro_ai.plot(...)
vizro_ai.plot(...)
Changes:
fig.show()
in the codefig
and addedfig.show()
in all examples in the docsScreenshot
Notice
[x] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":