MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Code corrections needed #14732

Closed ymouse91 closed 6 years ago

ymouse91 commented 6 years ago

You are missing this line in order to display the original image: plt.show() Also json module needs to be imported: import json


Document details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

YutongTie-MSFT commented 6 years ago

@ymouse91 Hi, thanks for your feedback. plt.show() displays the figure (and enters the mainloop of whatever gui backend you're using). image

plt.imshow() draws an image on the current figure (creating a figure is there isn't a current figure). image

In this tutorial, we just want to get out original photo, so plt.imshow() works. We do not need to import json here, it will work well.

YutongTie-MSFT commented 6 years ago

@ymouse91 We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.