小编Pyr*_*n55的帖子

包括 \lstlistoflistings 并在目录中引用它

我有一个关于在我的目录中包含列表目录的问题。我正在使用\lstlistoflistings\tableofcontents\usepackage{listings}现在我的问题是:当我生成列表列表时,它填充了我的文档中的列表,但我的目录中没有引用它。我的目录中没有列表条目。有人能想象,我做错了什么吗?或者是否有包含 ist 的特殊技巧?谢谢你!

latex tableofcontents lstlisting

3
推荐指数
1
解决办法
3442
查看次数

Python绘制两个长度不同的列表

我有两个价格不同的清单。第一个是2008-2018年,第二个是2010-2018年。在2008年至2018年位于X轴,第二个列表于2010年开始的情况下,如何绘制它们?

我有以下作为简短代码的示例:

from matplotlib import pyplot as plt

Geb_b30 = [11, 10, 12, 14, 16, 19, 17, 14, 18, 17]
Geb_a30 = [12, 10, 13, 14, 12, 13, 18, 16]

fig, ax = plt.subplots()
ax.plot(Geb_b30, label='Prices 2008-2018', color='blue')
ax.plot(Geb_a30, label='Prices 2010-2018', color = 'red')
legend = ax.legend(loc='center right', fontsize='x-large')
plt.xlabel('years')
plt.ylabel('prices')
plt.title('Comparison of the different prices')
plt.show()
Run Code Online (Sandbox Code Playgroud)

python matplotlib

2
推荐指数
2
解决办法
2871
查看次数

标签 统计

latex ×1

lstlisting ×1

matplotlib ×1

python ×1

tableofcontents ×1