问题描述
我有一个字典,其值由数据帧组成。每个df
具有相同的列名:X1
和X2
:
dic = {"a": df1,"b": df2,...,"y": df25}
现在,我想绘制这些数据框的线图,以便它们位于5行5列中。我想获得如下视觉效果:
解决方法
使用matplotlib.pyplot.subplots
的基本思想:
router.use('/',swaggerUi.serve,swaggerUi.setup(
swaggerJSDoc({
swaggerDefinition: { ...require('../swagger.json') }
}),{
explorer: true,swaggerOptions: {
displayRequestDuration: true,docExpansion: "none",filter: false,showExtensions: true,showCommonExtensions: true,displayOperationId: true,urls: [
{
url: 'http://localhost:3001',// url: 'http://localhost:3001/api-docs',// also tried but not working
name: 'Project 1'
},{
url: 'http://localhost:3002',// url: 'http://localhost:3002/api-docs',// also tried but not working
name: 'Project 2'
}
]
}
}
));
app.use('/api-docs',router); // SET SWAGGER DOCS