<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><span style="font-size: 12pt;">Hello,</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">I would like to know how I can change the settings of a layer </span><span style="font-size: 12pt;">without recreating it</span><span style="font-size: 12pt;">.</span></p>
<div>Precisely what I want to do is to change the diameter of a diagram in an existing layer.<br>
</div>
<div><br>
</div>
<div>It is possible to modify settings in QGIS directly...Layer-->(right click)-->properties-->Diagrams</div>
<div>and then... (Display diagrams)-->(Pie chart)-->(size) in the layer directly. However, I want<br>
</div>
<div>to modify the settings in a plugin developed in Python. <br>
</div>
<div><br>
</div>
<div>Currently I am considering using the public member fonction readXML :<br>
</div>
<div><br>
</div>
<div><a href="http://qgis.org/api/2.8/classQgsDiagramSettings.html">http://qgis.org/api/2.8/classQgsDiagramSettings.html</a><br>
</div>
<div><br>
</div>
<div>but without success. Is this the right place to look for information ?<br>
</div>
<div>Am I taking  the right approach?<br>
</div>
<div><br>
</div>
<div>Any help would be appreciated.<br>
</div>
<div><br>
</div>
<div>I'm working with QGIS <span style="font-size: 12pt;">2.8.2-Wien 64 bit</span></div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;">Regards</span></div>
<div><br>
</div>
<div>Pascal Lapointe<br>
</div>
</body>
</html>