I have some layers in my project and I would like to alter their styles, since ranges of values for underlying columns have changed.
Normally it would require to enter each layer style settings separately and trigger "Remove All", and "Classify" button, however I would like to execute it from the code.
I found such method for graduated symbol:
renderer.updateClasses(layer,0,bins)
,however I'm having trouble to find corresponding method for categorized symbol class
Is there any way to do this from pyqgis without the need to specify the layer style from the scratch (create category, label etc.) ? Some equivalent of "Classify" button from below screenshot:
