This is hopefully a quick question about Line Chart manipulation. We’re using ParaView 5.8.1 on Windows 10 x64 bit. We’d like to add the ‘degree’ symbol to an x-axis label, i.e. for degrees Celsius. However, pasting the symbol from MS Word into the viewport’s Axis Title input text field doesn’t work. I was wondering what character set is used for axes labels, and whether there’s an escape sequence for degrees that we can use in pvpython.
Thank you, and our apologies if this is a dum question - we couldn’t find it in the PV Guide
Milan
Thanks for that! I was actually posting on behalf of a co-worker, I hadn’t tried the copy-and-paste method myself, which does in fact work.
However, using the degree symbol with a pvpython script file does not work on my laptop. The script is as follows, and is run as an external .py file via the Python Shell Panel:
from paraview.simple import
layout1 = GetLayout()
renderView1 = GetActiveViewOrCreate(‘RenderView’)
Delete(renderView1)
del renderView1
lineChartView1 = CreateView(‘XYChartView’)
AssignViewToLayout(view=lineChartView1, layout=layout1, hint=0)
lineChartView1.BottomAxisTitle = ‘Temp (degC)’
lineChartView1.BottomAxisTitle = ‘Temp (°C)’
I get the following error message:
“File “”, line 13
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xb0 in position 6: invalid start byte” (see attached image)
Pasting the code directly into the Python Shell Panel just ignores the final code line without giving any error message.