How to coordinate the default black, and change to other color
CodePudding user response:
Axis is you use QPainter painted? So you can set the brush color of painter - & gt; SetPen (Qt: : red);
CodePudding user response:
//set the color coordinate color/coordinate name
The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetLabelColor (TextColor);
The UI - & gt; QCustomPlot - & gt; XAxis - & gt; SetTickLabelColor (TextColor);
The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetTickLabelColor (TextColor);
The UI - & gt; QCustomPlot - & gt; XAxis - & gt; SetBasePen (QPen (TextColor TextWidth));
The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetBasePen (QPen (TextColor TextWidth));
The UI - & gt; QCustomPlot - & gt; XAxis - & gt; SetTickPen (QPen (TextColor TextWidth));
The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetTickPen (QPen (TextColor TextWidth));
The UI - & gt; QCustomPlot - & gt; XAxis - & gt; SetSubTickPen (QPen (TextColor TextWidth));
The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetSubTickPen (QPen (TextColor TextWidth));
CodePudding user response:
The