Horizontal label unreadable when there are too many entries

Bug #306396 reported by Sebastien Cote
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cairo Plot
Fix Committed
Low
Rune K. Svendsen

Bug Description

When the horizontal labels are drawn and there are a lot of labels and little space, the labels are drawn on top of each other which makes the whole thing unreadable.

Overlapping labels should be skipped.

Related branches

Revision history for this message
Rodrigo Moreira Araújo (alf-rodrigo) wrote :

Did you notice this problem on BarPlots?

A fix was committed to solve this problem on Bar Plots.

For the Scatter, DotLine and Function plots, this problems will happen a lot less (if it will) because of the angular position of the labels.

Changed in cairoplot:
assignee: nobody → alf-rodrigo
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Sebastien Cote (sebas642) wrote :

I've seen this problem with DotLine when I had a lot of values to plot (200+ values).

Sorry I didn't put this information into the initial report.

Revision history for this message
Rodrigo Moreira Araújo (alf-rodrigo) wrote :

Ok, I'll adapt the algorithm from BarPlot to the Scatter, DotLine and Function plots.

Revision history for this message
Sebastien Cote (sebas642) wrote :
Revision history for this message
Rune K. Svendsen (runeks) wrote :

I have added a fix for this bug in my branch: https://code.launchpad.net/~runeks/cairoplot/devel
Here's how it looks rendering three years of Google stock prices (~750 data points):

Revision history for this message
Rune K. Svendsen (runeks) wrote :

Adding the patch here so this bug reports get a proper "has patch" tag.
This is a patch to v1.1 of cairoplot, by the way. I only discovered the "trunk" version after making this patch.

Revision history for this message
Rune K. Svendsen (runeks) wrote :
Changed in cairoplot:
assignee: Rodrigo Moreira Araújo (alf-rodrigo) → Rune K. Svendsen (runeks)
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.