[Pw_forum] Setting the scale in plotrho

Paolo Giannozzi giannozz at nest.sns.it
Thu Jul 1 16:15:14 CEST 2004


On Thursday 01 July 2004 15:26, Subhradip Ghosh wrote:

> When I plotted out the charge densities I found that the size
> of the [110] figure is 13.25x8.75 cm which is sqrt(2)x1
> essentially.
>
> The size of [100] figure is 10.7x10.7 cm which is 1x1.
>
> This is consistent with the length of the orthogonal vectors
> chosen. But, I want the plots in the same scale i.e. I want
> the size of the [100] figure to be 8.75x8.75 cm so that I can
> have consistency with the size of the [110] figure.

look inside PP/plotrho.f90, routine cplot:

  !   xdim and ydim are the physical dimensions of the figure in cm
  !   xs and ys determine a shift of the origin in cm

xdim and ydim are set in the calling program to 15*(x/r) and 15*(y/r)
cm, where x = x-axis length, y=y-axis length, r = sqrt(x^2+y^2)
(xs and ys are set to 4 and 3 cm). Set them to what you like
(or modify the code to read them from input) and recompile.

Paolo

-- 
Paolo Giannozzi             e-mail:  giannozz at nest.sns.it
Scuola Normale Superiore    Phone:   +39/050-509876, Fax:-563513 
Piazza dei Cavalieri 7      I-56126 Pisa, Italy



More information about the users mailing list