NEURON
plot.cpp File Reference
#include <../../nrnconf.h>
#include "hocdec.h"
#include "oc_ansi.h"
#include "utils/logger.hpp"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Macros

#define IGNORE(arg)   arg
 
#define text   hoc_plttext
 
#define SSUN   1
 
#define VT   2
 
#define SEL   3
 
#define TEK4014   4
 
#define ADM   5
 
#define NX   6
 
#define US   037
 
#define GS   035
 
#define CAN   030
 
#define EM   031
 
#define FS   034
 
#define ESC   033
 
#define ETX   03
 
#define XHOME   0
 
#define YHOME   770
 
#define SCX(x)   ((int) (x * .8))
 
#define SCY(y)   (600 - (int) (y * .8))
 
#define SCXD(x)   ((x * .8))
 
#define SCYD(y)   (7.5 * 80. - (y * .8))
 
#define TEXT   1
 
#define LINE1   2
 
#define LINE2   3
 
#define CODRAW_MAXPOINT   200
 
#define SCXD(x)   ((x * .008))
 
#define SCYD(y)   ((y * .008))
 
#define TEXT   1
 
#define LINE1   2
 
#define LINE2   3
 

Functions

static void Codraw_plt (int, double, double)
 
static void Codraw_preamble (void)
 
static void hplot (int, double, double)
 
static void Fig_preamble (void)
 
static void Fig_plt (int, double, double)
 
void Fig_file (const char *, int)
 
static void tplot (int, double, double)
 
static void hard_text_preamble ()
 
void hoc_plprint (const char *s)
 
void initplot (void)
 
void hoc_close_plot (void)
 
void hoc_plt (int mode, double x, double y)
 
static void hardplot_file (const char *s)
 
int hoc_set_color (int c)
 
static void codraw_line ()
 

Variables

static int console = 1
 
static int hardplot
 
static int graphdev
 
static int hpflag
 
int hoc_plttext
 
static FILE * gdev
 
static FILE * hpdev
 
static FILE * cdev
 
static char vt100 [] = "TERM=vt125"
 
static char adm3a [] = "TERM=adm3a"
 
static char ssun [] = "TERM=sun"
 
static char tek4014 [] = "TERM=4014"
 
static char ncsa [] = "NEURON=ncsa"
 
int hoc_color = 15
 
static double xlast
 
static double ylast
 
static char hardplot_filename [100]
 
static char fig_text_preamble [100]
 
static int codraw_npoint = 0
 
static float * codraw_pointx
 
static float * codraw_pointy
 

Macro Definition Documentation

◆ ADM

#define ADM   5

Definition at line 69 of file plot.cpp.

◆ CAN

#define CAN   030

Definition at line 74 of file plot.cpp.

◆ CODRAW_MAXPOINT

#define CODRAW_MAXPOINT   200

Definition at line 563 of file plot.cpp.

◆ EM

#define EM   031

Definition at line 75 of file plot.cpp.

◆ ESC

#define ESC   033

Definition at line 77 of file plot.cpp.

◆ ETX

#define ETX   03

Definition at line 78 of file plot.cpp.

◆ FS

#define FS   034

Definition at line 76 of file plot.cpp.

◆ GS

#define GS   035

Definition at line 73 of file plot.cpp.

◆ IGNORE

#define IGNORE (   arg)    arg

Definition at line 17 of file plot.cpp.

◆ LINE1 [1/2]

#define LINE1   2

◆ LINE1 [2/2]

#define LINE1   2

◆ LINE2 [1/2]

#define LINE2   3

◆ LINE2 [2/2]

#define LINE2   3

◆ NX

#define NX   6

Definition at line 70 of file plot.cpp.

◆ SCX

#define SCX (   x)    ((int) (x * .8))

◆ SCXD [1/2]

#define SCXD (   x)    ((x * .8))

◆ SCXD [2/2]

#define SCXD (   x)    ((x * .008))

◆ SCY

#define SCY (   y)    (600 - (int) (y * .8))

◆ SCYD [1/2]

#define SCYD (   y)    (7.5 * 80. - (y * .8))

◆ SCYD [2/2]

#define SCYD (   y)    ((y * .008))

◆ SEL

#define SEL   3

Definition at line 67 of file plot.cpp.

◆ SSUN

#define SSUN   1

Definition at line 65 of file plot.cpp.

◆ TEK4014

#define TEK4014   4

Definition at line 68 of file plot.cpp.

◆ text

#define text   hoc_plttext

Definition at line 60 of file plot.cpp.

◆ TEXT [1/2]

#define TEXT   1

◆ TEXT [2/2]

#define TEXT   1

◆ US

#define US   037

Definition at line 72 of file plot.cpp.

◆ VT

#define VT   2

Definition at line 66 of file plot.cpp.

◆ XHOME

#define XHOME   0

Definition at line 243 of file plot.cpp.

◆ YHOME

#define YHOME   770

Definition at line 244 of file plot.cpp.

Function Documentation

◆ codraw_line()

static void codraw_line ( )
static

Definition at line 655 of file plot.cpp.

◆ Codraw_plt()

void Codraw_plt ( int  mode,
double  x,
double  y 
)
static

Definition at line 587 of file plot.cpp.

◆ Codraw_preamble()

void Codraw_preamble ( void  )
static

Definition at line 569 of file plot.cpp.

◆ Fig_file()

void Fig_file ( const char *  s,
int  dev 
)

Definition at line 346 of file plot.cpp.

◆ Fig_plt()

void Fig_plt ( int  mode,
double  x,
double  y 
)
static

Definition at line 377 of file plot.cpp.

◆ Fig_preamble()

static void Fig_preamble ( void  )
static

Definition at line 369 of file plot.cpp.

◆ hard_text_preamble()

static void hard_text_preamble ( void  )
static

Definition at line 362 of file plot.cpp.

◆ hardplot_file()

static void hardplot_file ( const char *  s)
static

Definition at line 324 of file plot.cpp.

◆ hplot()

void hplot ( int  mode,
double  x,
double  y 
)
static

Definition at line 441 of file plot.cpp.

◆ tplot()

static void tplot ( int  mode,
double  x,
double  y 
)
static

Definition at line 246 of file plot.cpp.

Variable Documentation

◆ adm3a

char adm3a[] = "TERM=adm3a"
static

Definition at line 81 of file plot.cpp.

◆ cdev

FILE* cdev
static

Definition at line 63 of file plot.cpp.

◆ codraw_npoint

int codraw_npoint = 0
static

Definition at line 564 of file plot.cpp.

◆ codraw_pointx

float* codraw_pointx
static

Definition at line 565 of file plot.cpp.

◆ codraw_pointy

float * codraw_pointy
static

Definition at line 565 of file plot.cpp.

◆ console

int console = 1
static

MINGW32

MINGW32

Definition at line 55 of file plot.cpp.

◆ fig_text_preamble

char fig_text_preamble[100]
static

Definition at line 360 of file plot.cpp.

◆ gdev

FILE* gdev
static

Definition at line 61 of file plot.cpp.

◆ graphdev

int graphdev
static

Definition at line 57 of file plot.cpp.

◆ hardplot

int hardplot
static

Definition at line 56 of file plot.cpp.

◆ hardplot_filename

char hardplot_filename[100]
static

Definition at line 322 of file plot.cpp.

◆ hoc_plttext

int hoc_plttext

Definition at line 59 of file plot.cpp.

◆ hpdev

FILE* hpdev
static

Definition at line 62 of file plot.cpp.

◆ hpflag

int hpflag
static

Definition at line 58 of file plot.cpp.

◆ ncsa

char ncsa[] = "NEURON=ncsa"
static

Definition at line 84 of file plot.cpp.

◆ ssun

char ssun[] = "TERM=sun"
static

Definition at line 82 of file plot.cpp.

◆ tek4014

char tek4014[] = "TERM=4014"
static

Definition at line 83 of file plot.cpp.

◆ vt100

char vt100[] = "TERM=vt125"
static

Definition at line 80 of file plot.cpp.

◆ xlast

double xlast
static

Definition at line 86 of file plot.cpp.

◆ ylast

double ylast
static

Definition at line 86 of file plot.cpp.