On 16 November 2012 08:55, Yuan, Fang <[email protected]> wrote:
> I installed plplot11 in Ubuntu 11.10.
>
> I use plline() in the subroutine xy_plt1 of "gsa.h" file, they keep
> warned me as follows:
>
> ./gsa.h: In function ‘xy_plt1’:
> ./gsa.h:167:4: warning: passing argument 2 of ‘c_plline’ from incompatible
> pointer type [enabled by default]
> /usr/include/plplot/plplot.h:1260:1: note: expected ‘const PLFLT *’ but
> argument is of type ‘float *’
> ./gsa.h:167:4: warning: passing argument 3 of ‘c_plline’ from incompatible
> pointer type [enabled by default]
> /usr/include/plplot/plplot.h:1260:1: note: expected ‘const PLFLT *’ but
> argument is of type ‘float *’
>
>
> void xy_plt1 ( int nn, float xn[], float yn[])
>
> The commends I used in plline is:
> plline( nn, xn, yn);
>
> The plline only draw one string line.
>
> Does anyone know how to fix it?
>
PLFLT is in most installations set to be a double rather than a float. By
using the PLFLT macro, you will be compatible with either possibility If it
is not feasible to change the calling code, then you should convert before
plotting the data.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general