使用yt工具包在python中制作平滑的内衬图

时间:2016-08-20 02:41:43

标签: python matplotlib yt-project

我一直在使用基于python的yt工具包来分析一些数据,而且我的文件不够频繁,无法制作出平滑的情节。该图以对数刻度显示。

        ni56Mass[n] = (d['cell_mass'] * d['ni56']).sum()


        plt.semilogy(time,ni56Mass,label='$^{56}$Ni')
        plt.xlabel('time [s]')
        plt.ylabel('fallback mass [$M_\odot$]')
        plt.xlim(20,60)
        plt.ylim(1.0e-3, 2.0e-1)
        plt.legend(loc=3)

示例输出类似于以下enter image description here

我想知道是否在yt或python本身中都有一个工具可以从这些数据中创建一个平滑的图。提前致谢

0 个答案:

没有答案