如何在网格中绘制多个线图?

问题描述

我有一个字典,其值由数据帧组成。每个df具有相同的列名:X1X2

dic = {"a": df1,"b": df2,...,"y": df25}

现在,我想绘制这些数据框的线图,以便它们位于5行5列中。我想获得如下视觉效果:

enter image description here

解决方法

使用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

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...