QCustomPlot Discussion and Comments

Can you customize the difference between sub-ticksReturn to overview

The subticks in my plot are quite close to each other. Is there any way I could increase the distance between them ?

Yes, decrease their number by


I currently have


this gives me 5 subticks between two ticks and I want to keep it that way.

If I change


this will only give me two subticks between two ticks. which i dont want. I actually want to keep 5 subticks and increase the distance between the subticks so they are a little farther apart..In short I want 5 subticks between two ticks only with increased spacing between two adjacent subticks.

Well then you need to increase your tick step if auto-tickstep is off :)
If it is on, you can decrease the number of ticks QCP tries to create in the current range via xAxis->setAutoTickCount


This is my current code

	ui.myplot->xAxis->setRange(795, 900);  

I want to prserve the same code tickstrp and tickcount only increase the distance between subticks. Thus further elongating an image. Any suggestions.

Ah okay, then you need to stretch your widget or window. For example by using setGeometry on your main window, or setting different minimum sizes on the QCustomPlot widget.