NEURON
axis.cpp File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "gui-redirect.h"
#include "utils/logger.hpp"

Go to the source code of this file.

Classes

struct  Grph
 

Macros

#define CLIP   1e9
 
#define XS   500.
 
#define YS   400.
 
#define XO   100.
 
#define YO   100.
 
#define Ret(a)
 
#define NPARAM   10
 
#define xorg   param[0]
 
#define yorg   param[1]
 
#define xscale   param[2]
 
#define yscale   param[3]
 
#define xlow   param[4]
 
#define ylow   param[5]
 
#define xhigh   param[6]
 
#define yhigh   param[7]
 
#define xsav   param[8]
 
#define ysav   param[9]
 
#define WIDTH   10.
 
#define HEIGHT   10.
 
#define MAXCNT   50
 

Typedefs

typedef struct Grph Grph
 

Functions

static int PLOT (int, int, double, double)
 
static void free_graph (void)
 
static void plotstream (int, int, double)
 
static void plotflush (int)
 
static void do_setup (void)
 
void hoc_regraph (void)
 
static void open_regraph (void)
 
static void close_regraph (void)
 
static void do_regraph (void)
 
static void save_regraph_item (int narg, int mode, double x)
 
void hoc_Plot (void)
 
void hoc_plotx (void)
 
void hoc_ploty (void)
 
void hoc_axis (void)
 
void hoc_Graph (void)
 
void hoc_Graphmode (void)
 

Variables

static double param [NPARAM] = {XO, YO, XS, YS, -1e9, -1e9, 1e9, 1e9, 0.0, 0.0}
 
static double XSIZE = XS
 
static double YSIZE = YS
 
static double XORG = XO
 
static double YORG = YO
 
static double xstart = 0.
 
static double xstop = 1.
 
static double ystart = 0.
 
static double ystop = 1.
 
static double xinc = 1.
 
static double yinc = 1.
 
static double lastmode = 1
 
static double clip = CLIP
 
static int grphing = 0
 
static int SaveForRegraph = 0
 
static int regraph_index
 
static int max_regraph_index = 1000
 
static int regraph_narg [1000]
 
static int regraph_mode [1000]
 
static int regraph_color [1000]
 
static double regraph_x [1000]
 
static double * regraph_y [1000]
 
static int initialized
 
static Symlistgraph_sym_list
 
static int pcnt
 
static int badgraph = 1
 
static double * lx
 
static Grphglist_head
 
static Grphglist_tail
 

Macro Definition Documentation

◆ CLIP

#define CLIP   1e9

Definition at line 141 of file axis.cpp.

◆ HEIGHT

#define HEIGHT   10.

Definition at line 305 of file axis.cpp.

◆ MAXCNT

#define MAXCNT   50

Definition at line 424 of file axis.cpp.

◆ NPARAM

#define NPARAM   10

Definition at line 151 of file axis.cpp.

◆ Ret

#define Ret (   a)
Value:
hoc_ret(); \
hoc_pushx(a);
void hoc_ret()

Definition at line 146 of file axis.cpp.

◆ WIDTH

#define WIDTH   10.

Definition at line 304 of file axis.cpp.

◆ xhigh

#define xhigh   param[6]

Definition at line 159 of file axis.cpp.

◆ xlow

#define xlow   param[4]

Definition at line 157 of file axis.cpp.

◆ XO

#define XO   100.

Definition at line 144 of file axis.cpp.

◆ xorg

#define xorg   param[0]

Definition at line 153 of file axis.cpp.

◆ XS

#define XS   500.

Definition at line 142 of file axis.cpp.

◆ xsav

#define xsav   param[8]

Definition at line 161 of file axis.cpp.

◆ xscale

#define xscale   param[2]

Definition at line 155 of file axis.cpp.

◆ yhigh

#define yhigh   param[7]

Definition at line 160 of file axis.cpp.

◆ ylow

#define ylow   param[5]

Definition at line 158 of file axis.cpp.

◆ YO

#define YO   100.

Definition at line 145 of file axis.cpp.

◆ yorg

#define yorg   param[1]

Definition at line 154 of file axis.cpp.

◆ YS

#define YS   400.

Definition at line 143 of file axis.cpp.

◆ ysav

#define ysav   param[9]

Definition at line 162 of file axis.cpp.

◆ yscale

#define yscale   param[3]

Definition at line 156 of file axis.cpp.

Typedef Documentation

◆ Grph

typedef struct Grph Grph

Function Documentation

◆ close_regraph()

static void close_regraph ( void  )
static

Definition at line 199 of file axis.cpp.

◆ do_regraph()

static void do_regraph ( void  )
static

Definition at line 202 of file axis.cpp.

◆ do_setup()

static void do_setup ( void  )
static

Definition at line 580 of file axis.cpp.

◆ free_graph()

static void free_graph ( void  )
static

Definition at line 496 of file axis.cpp.

◆ hoc_axis()

void hoc_axis ( void  )

Definition at line 306 of file axis.cpp.

◆ hoc_Graph()

void hoc_Graph ( void  )

Definition at line 440 of file axis.cpp.

◆ hoc_Graphmode()

void hoc_Graphmode ( void  )

Definition at line 478 of file axis.cpp.

◆ hoc_Plot()

void hoc_Plot ( void  )

Definition at line 222 of file axis.cpp.

◆ hoc_plotx()

void hoc_plotx ( void  )

Definition at line 293 of file axis.cpp.

◆ hoc_ploty()

void hoc_ploty ( void  )

Definition at line 298 of file axis.cpp.

◆ hoc_regraph()

void hoc_regraph ( void  )

Definition at line 186 of file axis.cpp.

◆ open_regraph()

static void open_regraph ( void  )
static

Definition at line 195 of file axis.cpp.

◆ PLOT()

static int PLOT ( int  narg,
int  mode,
double  x,
double  y 
)
static

Definition at line 265 of file axis.cpp.

◆ plotflush()

static void plotflush ( int  contin)
static

Definition at line 531 of file axis.cpp.

◆ plotstream()

static void plotstream ( int  narg,
int  mode,
double  x 
)
static

Definition at line 512 of file axis.cpp.

◆ save_regraph_item()

static void save_regraph_item ( int  narg,
int  mode,
double  x 
)
static

Definition at line 211 of file axis.cpp.

Variable Documentation

◆ badgraph

int badgraph = 1
static

Definition at line 426 of file axis.cpp.

◆ clip

double clip = CLIP
static

Definition at line 168 of file axis.cpp.

◆ glist_head

Grph* glist_head
static

Definition at line 438 of file axis.cpp.

◆ glist_tail

Grph * glist_tail
static

Definition at line 438 of file axis.cpp.

◆ graph_sym_list

Symlist* graph_sym_list
static

Definition at line 423 of file axis.cpp.

◆ grphing

int grphing = 0
static

Definition at line 169 of file axis.cpp.

◆ initialized

int initialized
static

Definition at line 422 of file axis.cpp.

◆ lastmode

double lastmode = 1
static

Definition at line 167 of file axis.cpp.

◆ lx

double* lx
static

Definition at line 427 of file axis.cpp.

◆ max_regraph_index

int max_regraph_index = 1000
static

Definition at line 173 of file axis.cpp.

◆ param

double param[NPARAM] = {XO, YO, XS, YS, -1e9, -1e9, 1e9, 1e9, 0.0, 0.0}
static

Definition at line 152 of file axis.cpp.

◆ pcnt

int pcnt
static

Definition at line 425 of file axis.cpp.

◆ regraph_color

int regraph_color[1000]
static

Definition at line 176 of file axis.cpp.

◆ regraph_index

int regraph_index
static

Definition at line 172 of file axis.cpp.

◆ regraph_mode

int regraph_mode[1000]
static

Definition at line 175 of file axis.cpp.

◆ regraph_narg

int regraph_narg[1000]
static

Definition at line 174 of file axis.cpp.

◆ regraph_x

double regraph_x[1000]
static

Definition at line 177 of file axis.cpp.

◆ regraph_y

double* regraph_y[1000]
static

Definition at line 178 of file axis.cpp.

◆ SaveForRegraph

int SaveForRegraph = 0
static

Definition at line 171 of file axis.cpp.

◆ xinc

double xinc = 1.
static

Definition at line 166 of file axis.cpp.

◆ XORG

double XORG = XO
static

Definition at line 164 of file axis.cpp.

◆ XSIZE

double XSIZE = XS
static

Definition at line 164 of file axis.cpp.

◆ xstart

double xstart = 0.
static

Definition at line 165 of file axis.cpp.

◆ xstop

double xstop = 1.
static

Definition at line 165 of file axis.cpp.

◆ yinc

double yinc = 1.
static

Definition at line 166 of file axis.cpp.

◆ YORG

double YORG = YO
static

Definition at line 164 of file axis.cpp.

◆ YSIZE

double YSIZE = YS
static

Definition at line 164 of file axis.cpp.

◆ ystart

double ystart = 0.
static

Definition at line 165 of file axis.cpp.

◆ ystop

double ystop = 1.
static

Definition at line 165 of file axis.cpp.