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

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)   hoc_ret(); hoc_pushx(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 Jaslove   0
 
#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

Object **(* nrnpy_gui_helper_ )(const char *name, Object *obj)
 HAVE_IV. More...
 
double(* nrnpy_object_to_double_ )(Object *)
 
static double param [NPARAM]
 
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 144 of file axis.cpp.

◆ HEIGHT

#define HEIGHT   10.

Definition at line 311 of file axis.cpp.

◆ Jaslove

#define Jaslove   0

◆ MAXCNT

#define MAXCNT   50

Definition at line 482 of file axis.cpp.

◆ NPARAM

#define NPARAM   10

Definition at line 152 of file axis.cpp.

◆ Ret

#define Ret (   a)    hoc_ret(); hoc_pushx(a);

Definition at line 149 of file axis.cpp.

◆ WIDTH

#define WIDTH   10.

Definition at line 310 of file axis.cpp.

◆ xhigh

#define xhigh   param[6]

Definition at line 162 of file axis.cpp.

◆ xlow

#define xlow   param[4]

Definition at line 160 of file axis.cpp.

◆ XO

#define XO   100.

Definition at line 147 of file axis.cpp.

◆ xorg

#define xorg   param[0]

Definition at line 156 of file axis.cpp.

◆ XS

#define XS   500.

Definition at line 145 of file axis.cpp.

◆ xsav

#define xsav   param[8]

Definition at line 164 of file axis.cpp.

◆ xscale

#define xscale   param[2]

Definition at line 158 of file axis.cpp.

◆ yhigh

#define yhigh   param[7]

Definition at line 163 of file axis.cpp.

◆ ylow

#define ylow   param[5]

Definition at line 161 of file axis.cpp.

◆ YO

#define YO   100.

Definition at line 148 of file axis.cpp.

◆ yorg

#define yorg   param[1]

Definition at line 157 of file axis.cpp.

◆ YS

#define YS   400.

Definition at line 146 of file axis.cpp.

◆ ysav

#define ysav   param[9]

Definition at line 165 of file axis.cpp.

◆ yscale

#define yscale   param[3]

Definition at line 159 of file axis.cpp.

Typedef Documentation

◆ Grph

typedef struct Grph Grph

Function Documentation

◆ close_regraph()

static void close_regraph ( void  )
static

Definition at line 202 of file axis.cpp.

◆ do_regraph()

static void do_regraph ( void  )
static

Definition at line 205 of file axis.cpp.

◆ do_setup()

static void do_setup ( void  )
static

Definition at line 641 of file axis.cpp.

◆ free_graph()

static void free_graph ( void  )
static

Definition at line 555 of file axis.cpp.

◆ hoc_axis()

void hoc_axis ( void  )

Definition at line 312 of file axis.cpp.

◆ hoc_Graph()

void hoc_Graph ( void  )

Definition at line 498 of file axis.cpp.

◆ hoc_Graphmode()

void hoc_Graphmode ( void  )

Definition at line 536 of file axis.cpp.

◆ hoc_Plot()

void hoc_Plot ( void  )

Definition at line 227 of file axis.cpp.

◆ hoc_plotx()

void hoc_plotx ( void  )

Definition at line 299 of file axis.cpp.

◆ hoc_ploty()

void hoc_ploty ( void  )

Definition at line 304 of file axis.cpp.

◆ hoc_regraph()

void hoc_regraph ( void  )

Definition at line 189 of file axis.cpp.

◆ open_regraph()

static void open_regraph ( void  )
static

Definition at line 198 of file axis.cpp.

◆ PLOT()

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

Definition at line 266 of file axis.cpp.

◆ plotflush()

static void plotflush ( int  contin)
static

Definition at line 591 of file axis.cpp.

◆ plotstream()

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

Definition at line 571 of file axis.cpp.

◆ save_regraph_item()

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

Definition at line 215 of file axis.cpp.

Variable Documentation

◆ badgraph

int badgraph =1
static

Definition at line 484 of file axis.cpp.

◆ clip

double clip =CLIP
static

Definition at line 171 of file axis.cpp.

◆ glist_head

Grph* glist_head
static

Definition at line 496 of file axis.cpp.

◆ glist_tail

Grph * glist_tail
static

Definition at line 496 of file axis.cpp.

◆ graph_sym_list

Symlist* graph_sym_list
static

Definition at line 481 of file axis.cpp.

◆ grphing

int grphing =0
static

Definition at line 172 of file axis.cpp.

◆ initialized

int initialized
static

Definition at line 480 of file axis.cpp.

◆ lastmode

double lastmode =1
static

Definition at line 170 of file axis.cpp.

◆ lx

double* lx
static

Definition at line 485 of file axis.cpp.

◆ max_regraph_index

int max_regraph_index = 1000
static

Definition at line 176 of file axis.cpp.

◆ nrnpy_gui_helper_

Object**(* nrnpy_gui_helper_) (const char *name, Object *obj)

HAVE_IV.

Definition at line 13 of file xmenu.cpp.

◆ nrnpy_object_to_double_

double(* nrnpy_object_to_double_) (Object *)

Definition at line 14 of file xmenu.cpp.

◆ param

double param[NPARAM]
static
Initial value:
= {
XO, YO, XS, YS, -1e9,-1e9,1e9,1e9,0.0,0.0
}
#define YS
Definition: axis.cpp:146
#define XO
Definition: axis.cpp:147
#define YO
Definition: axis.cpp:148
#define XS
Definition: axis.cpp:145

Definition at line 153 of file axis.cpp.

◆ pcnt

int pcnt
static

Definition at line 483 of file axis.cpp.

◆ regraph_color

int regraph_color[1000]
static

Definition at line 179 of file axis.cpp.

◆ regraph_index

int regraph_index
static

Definition at line 175 of file axis.cpp.

◆ regraph_mode

int regraph_mode[1000]
static

Definition at line 178 of file axis.cpp.

◆ regraph_narg

int regraph_narg[1000]
static

Definition at line 177 of file axis.cpp.

◆ regraph_x

double regraph_x[1000]
static

Definition at line 180 of file axis.cpp.

◆ regraph_y

double* regraph_y[1000]
static

Definition at line 181 of file axis.cpp.

◆ SaveForRegraph

int SaveForRegraph =0
static

Definition at line 174 of file axis.cpp.

◆ xinc

double xinc =1.
static

Definition at line 169 of file axis.cpp.

◆ XORG

double XORG =XO
static

Definition at line 167 of file axis.cpp.

◆ XSIZE

double XSIZE =XS
static

Definition at line 167 of file axis.cpp.

◆ xstart

double xstart =0.
static

Definition at line 168 of file axis.cpp.

◆ xstop

double xstop =1.
static

Definition at line 168 of file axis.cpp.

◆ yinc

double yinc =1.
static

Definition at line 169 of file axis.cpp.

◆ YORG

double YORG =YO
static

Definition at line 167 of file axis.cpp.

◆ YSIZE

double YSIZE =YS
static

Definition at line 167 of file axis.cpp.

◆ ystart

double ystart =0.
static

Definition at line 168 of file axis.cpp.

◆ ystop

double ystop =1.
static

Definition at line 168 of file axis.cpp.