Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用html显示python matplotlib pyplot而不保存图形_Python_Html_Python 3.x_Flask - Fatal编程技术网

使用html显示python matplotlib pyplot而不保存图形

使用html显示python matplotlib pyplot而不保存图形,python,html,python-3.x,flask,Python,Html,Python 3.x,Flask,我有figure X.graph,它是一个matplotlib.figure.figure,使用Flask中的render_模板('page',graph=X.graph)传递给html模板。有没有可能让我的html页面显示此图形而不将其保存为图像并以这种方式访问

我有figure X.graph,它是一个matplotlib.figure.figure,使用Flask中的render_模板('page',graph=X.graph)传递给html模板。有没有可能让我的html页面显示此图形而不将其保存为图像并以这种方式访问