Opened 20 months ago

Last modified 6 days ago

#3520 new task

colorize vector layers in GUI by default

Reported by: martinl Owned by: grass-dev@…
Priority: normal Milestone: 7.8.2
Component: wxGUI Version: unspecified
Keywords: vector, colors Cc:
CPU: Unspecified Platform: Unspecified

Description (last modified by martinl)

I added to GUI preferences new option to enable random colors for vector map layers (GUI Preferences -> Layers).

Attachments (1)

vect-randomColors.png (5.7 KB) - added by martinl 20 months ago.

Download all attachments as: .zip

Change History (11)

Changed 20 months ago by martinl

Attachment: vect-randomColors.png added

comment:1 Changed 20 months ago by martinl

Description: modified (diff)
Milestone: 7.6.0

comment:2 Changed 20 months ago by martinl

Description: modified (diff)

comment:3 Changed 20 months ago by martinl

Currently this option is disabled. For next main release 7.6 I would suggest to enable it by default. Reasons:

  • all vector maps displayed in black feature and grey area fill color
  • most of users perform colorization after adding new layers to map display
  • colorization based on categories does not really influence display speed so much, simple test below
$ v.info parcely -t | grep 'area'
areas=362508

$ time d.vect parcely

real	0m15.764s

$ time d.vect parcely -c
d.vect complete.  

real	0m15.533s

What do you think?

comment:4 Changed 20 months ago by wenzeslaus

I agree that the current default is not ideal. Preferred behavior probably depends on the use case, but -c as default is quite different from what everybody else does (so potentially it is unexpected): loading each vector layer to map display with different single color versus different color for each feature in the vector map/layer. I think it is a great checkbox, just not sure if it should be enabled by default.

comment:5 in reply to:  4 Changed 20 months ago by martinl

Replying to wenzeslaus:

I agree that the current default is not ideal. Preferred behavior probably depends on the use case, but -c as default is quite different from what everybody else does (so potentially it is unexpected): loading each vector layer to map display with different single color versus different color for each feature in the vector map/layer. I think it is a great checkbox, just not sure if it should be enabled by default.

You are right, -c shouldn't be enabled by default. After some testing I can say that it's messy in many cases (point layers for example). I am leaving this ticket open in order to implement new GUI settings to colorize map layers (not features) similarly as other software do.

comment:6 Changed 10 months ago by martinl

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:7 Changed 8 months ago by martinl

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

comment:8 Changed 7 months ago by martinl

Milestone: 7.6.27.8.0

comment:9 Changed 2 months ago by neteler

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:10 Changed 6 days ago by neteler

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.