Jupter editor
The X axis shows square, how to solve? MAC system, need specific steps, thank you
CodePudding user response:
Go ask Python plateCodePudding user response:
At the beginning of the code introduced:# matplotlib drawing Chinese display problems
PLT. RcParams [' font. Sans-serif]=[' KaiTi] # specify a default font
PLT. RcParams [' axes. Unicode_minus]=False # to save images is minus sign '-' show up as squares