Draw Gradient Color Map using python
github源码地址:
欢迎关注我!
pratical_skills_tools
Draw Gradient Color Map
Dependencies
pandas
matplotlib
numpy
seaborn
You can configure it using pip install XXX in terminal.
Results
figure1:
figure2:
Using and Explanation
1.改变颜色的种类
在程序path_Results.py文件中,修改plot_results_path函数中的:
lc = gd.colorline(x, y, z, cmap=plt.get_cmap('cool'), linewidth=linewidth_car) # 'jet' #'cool'
中的cmap=plt.get_cmap('cool')参数即可。可以设置的有:
参考 matplotlib tutorials中的colors部分
举例: