Go to the documentation of this file.
53 plabort(
"wxPLplotstream::Create - Stream already created" );
56 const size_t bufferSize = 256;
65 char drvopt[bufferSize],
buffer[bufferSize];
68 sprintf(
buffer,
"hrshsym=%d,text=%d",
71 strncat( drvopt,
buffer, bufferSize - strlen( drvopt ) );
73 setopt(
"-drvopt", drvopt );
109 wxSize size(
width, height );
virtual void set_stream(void)
void Create(wxDC *dc, int width, int height, int style)
Called from the constructor or can be called by the user if the default constructor is used.
void SetSize(int width, int height)
Set new size of plot area.
void plabort(PLCHAR_VECTOR errormsg)
void RenewPlot()
Redo plot and update dc.
void ImportBuffer(void *buffer, size_t size)
Import a buffer of plplot commands.
int m_style
style of this plot
void sdev(const char *devname)
#define PLESC_FLUSH_REMAINING_BUFFER
#define PLESC_APPEND_BUFFER
#define PLESC_IMPORT_BUFFER
void SetDC(wxDC *dc)
Set a new dc to write to.
void cmd(PLINT op, void *ptr)
int m_width
Width of dc/plot area.
void AppendBuffer(void *buffer, size_t size)
Append a buffer of plplot commands.
int m_height
Height of dc/plot area.
wxPLplotstream()
Constructor.
~wxPLplotstream()
Destructor, although we have no resources to free.
void SetFixedAspectRatio(bool fixed)
Set Fixed aspect ratio of the plot.
void set_stream()
Calls some code before every PLplot command.
PLINT setopt(const char *opt, const char *optarg)
void spage(PLFLT xp, PLFLT yp, PLINT xleng, PLINT yleng, PLINT xoff, PLINT yoff)
void sdevdata(void *data)