Python中文
首页
教程
问答
标签
搜索
登录
注册
设置面积图openpyx的透明度(alpha)
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我想用openpyxl为面积图的背景设置透明度。我的图表代码是:</p> <pre><code>from openpyxl.drawing.fill import PatternFillProperties, ColorChoice c2 = AreaChart() c2.grouping = 'stacked' c2.add_data(data, titles_from_data=True) c2_s1 = c2.series[0] fill = PatternFillProperties() fill.background = ColorChoice(srgbClr="FFFFFF") c2_s2.graphicalProperties.pattFill = fill </code></pre> <p>我尝试过使用rgba十六进制编码。在</p> ^{pr2}$ <p>我也尝试过使用<code>SystemColor</code>,但是我找不到任何关于如何使用它的例子,而且我所做的每一次尝试都失败了</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>我怀疑如果不修改openpyxl源代码,您想做的事情目前是不可能的。有关详细信息,请参见<a href="http://bitbucket.org/openpyxl/openpyxl/pull-requests/166" rel="nofollow noreferrer" title="this pull request">"this pull request"</a>。在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
pyVISA GPIB GET(组执行触发器)
9 回答
Pyvisa IOerror设备:Korad K3005d电源
5 回答
PyVISA mac OS X(山狮)安捷伦33250
7 回答
Pyvisa Pyusb无法加载大于1 MB的序列
6 回答
pyVisa RS232太慢
9 回答
PyVISA RS232超时错误(安捷伦电源)
5 回答
PyVISA SCPI命令和查询(值更新问题)
3 回答
PyVISA SerialInstrument需要硬重置才能在故障后连接
9 回答
pyvisa,未找到函数viOpen
5 回答
pyVISA:以编程方式将仪器返回到本地模式
2 回答
pyvisa:接口类型是什么意思?
3 回答
pyvisa.errors.VisaIOError:VI_ERROR_TMO(1073807339):操作完成前超时
8 回答
PyVisa“更复杂的示例”根本不运行Keithley 2400不理解的命令
2 回答
PyVisapy后端
10 回答
PyVISA不能写入超过7F的十六进制字符
9 回答
PYVISA中的ENUM模块和cStringIO模块
1 回答
PyVisa代码的图形用户界面
3 回答
Pyvisa使用按键电源超时
7 回答
PyVISA和Kethley 2701只能从一个通道获取结果
10 回答
PyVisa和Printing New D
3 回答