I have already succesfully installed and used plplot within a C project of mine. Everything work pretty well up till now, when I tried to implemented the plshades function in my project. There are simply no shades plotted, the axis and the window are set, without any shades. But during the debugging of my code due to this problem I found something strange in the plplot code.
But in the definition (plshades.c) the function is defined by this: void c_plshades( const PLFLT * const *a, PLINT nx, PLINT ny, PLINT ( *defined )( PLFLT, PLFLT ),
PLFLT xmin, PLFLT xmax, PLFLT ymin, PLFLT ymax,
const PLFLT *clevel, PLINT nlevel, PLFLT fill_width,
PLINT cont_color, PLFLT cont_width,
void ( *fill )( PLINT, const PLFLT *, const PLFLT * ), PLINT rectangular,
void ( *pltr )( PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer ),
PLPointer pltr_data )
These definitions are different, especalliy for fill_width and cont_width. When stepping into the function c_plshades these two variables get denormalized. I'm not quite shure if this is really is the problem that no shades are plotted. But as fare as I know (and I'm quite a newby to this C/plplot coding) these two definitions should be the same, or?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have already succesfully installed and used plplot within a C project of mine. Everything work pretty well up till now, when I tried to implemented the plshades function in my project. There are simply no shades plotted, the axis and the window are set, without any shades. But during the debugging of my code due to this problem I found something strange in the plplot code.
In the plplot.h file the plshade function is defined like this:
PLDLLIMPEXP void c_plshades( const PLFLT * const *a, PLINT nx, PLINT ny, PLINT ( *defined )( PLFLT, PLFLT ), PLFLT xmin, PLFLT xmax, PLFLT ymin, PLFLT ymax, const PLFLT *clevel, PLINT nlevel, PLINT fill_width, PLINT cont_color, PLINT cont_width, void ( *fill )( PLINT, const PLFLT *, const PLFLT * ), PLBOOL rectangular, void ( *pltr )( PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer ), PLPointer pltr_data );
But in the definition (plshades.c) the function is defined by this:
void c_plshades( const PLFLT * const *a, PLINT nx, PLINT ny, PLINT ( *defined )( PLFLT, PLFLT ), PLFLT xmin, PLFLT xmax, PLFLT ymin, PLFLT ymax, const PLFLT *clevel, PLINT nlevel, PLFLT fill_width, PLINT cont_color, PLFLT cont_width, void ( *fill )( PLINT, const PLFLT *, const PLFLT * ), PLINT rectangular, void ( *pltr )( PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer ), PLPointer pltr_data )
These definitions are different, especalliy for
fill_width
andcont_width
. When stepping into the function c_plshades these two variables get denormalized. I'm not quite shure if this is really is the problem that no shades are plotted. But as fare as I know (and I'm quite a newby to this C/plplot coding) these two definitions should be the same, or?