Holger Vogt
e53632c368
When plotting arrays of curves, plot lines only in the direction
of (in absolute terms) growing x values.
Example: MOS output characteristics.
In the rare case of plotting versus varying x directions
(e.g. example memristor.sp), one has to add the flag
'retraceplot' to the plot command.
6 years ago
Holger Vogt
14b154f5f3
Copy the scale vector as well and attach it to the data vector.
Remove it again when the graph is destroyed.
6 years ago
Holger Vogt
f518766c66
add a slight offset between y axis labels and grid
6 years ago
Holger Vogt
1919cf5c94
replace variable 'gridwidth' by 'xgridwidth'
6 years ago
Holger Vogt
c2cf4d7eda
required for reliable re-plotting, however still has the
return line bug no #472
6 years ago
Holger Vogt
57e647c704
enable "null allowed" for reset input
6 years ago
Holger Vogt
acbec3ae81
Preliminary 'fix' to a plotting bug (visible return line in an array of curves):
Partially undo code added in commit 10415875f4 /
This will need further discussion or updates
6 years ago
Holger Vogt
71ad2903ff
plug a memory leak in inpcom.c vdmos code
6 years ago
Holger Vogt
4ddcff55e7
add const declaration to newfopen
6 years ago
Holger Vogt
c4045d371d
single space indent in analysis window
6 years ago
Holger Vogt
8ff4c7cd3b
just another remains of quote
6 years ago
Holger Vogt
7f085144a9
remove all the remains of quote() and strip() that had been
used to modify the eigths bit of a character or string.
The functions had been switched off some time ago.
We now need all bits of a char for extended ascii or utf8
6 years ago
Holger Vogt
8d986e50cc
remove the remains of the old xgraph program
that has not been supported for many years
6 years ago
Holger Vogt
32722ecc57
some missing brackets, typos
6 years ago
Holger Vogt
93a408598a
switch to colorarray in graph to string all color data,
one set per each graph.
If we are zooming or selecting a cutout, copy the
source graph's colors to the new graph. Transfer the
old graphs id to the new graph via graph->graphid.
6 years ago
Vogt
728ddae41e
Set the color tables and linewidths personal for each graph,
added to strucht graph
Use only these data for plotting.
If zooming a plot windows, set as an extra parameter the graph id
of the 'mother graph'. Copy its color and line data to the new graph.
This is done by an extra parameter sgraphid to the internal plot
command that is issued in fcn PlotWindowProc().
Thus zooming will keep the background, text/line and graph colors.
Function setcolor() will always look into the colorarray of the
current graph.
6 years ago
Holger Vogt
a7aaac854f
enable color and font selection for X11:
Add graphics context gridgc for plotting the grids.
Enable rgbd:, input of color by RGB 0 ... 255
If no color1 (text/grid) is given,
select black or white according to backgrund color.
Error message, but no crash if font cannot be selected.
Enable separate linewidth selection for grid and graph.
6 years ago
Holger Vogt
800cd05f3d
new variable nolegend: with 'set nolegend' plotting of
the legend is suppressed.
6 years ago
Holger Vogt
fed7ef378f
add variable ticchar, allow an arbitrary character as ticmark
6 years ago
Holger Vogt
8639144093
cp_getvar: force a limit to a string entered
Issue a warning, truncate the string
6 years ago
Holger Vogt
1fda03382e
color input for text/grids (color1), background (color0)
and graphs (color2-22) on Windows via
set color2=red
set color2=rgb:ff/0/0
set color2=rgbd:255,0,0
several examples given in the example files
6 years ago
Holger Vogt
86917e3d36
enclose in WinGUI #ifdef
6 years ago
Holger Vogt
6094769fda
Restore original 'green', slight update on
auto color selection vs. background
6 years ago
Holger Vogt
cb38e7a367
enable using setting colors by colornn with 0<=nn<=22
The name list of colors is given by
https://www.codeproject.com/Articles/1276/Naming-Common-Colors
6 years ago
Holger Vogt
54778527c4
list of colors used
6 years ago
Holger Vogt
167bd9b433
enable color selection, if compiled with MINGW
6 years ago
Holger Vogt
3701ca0364
add color selection to WinGui plots
6 years ago
Holger Vogt
ef95ff7edc
generate variable oscompiled
test for variable
6 years ago
Holger Vogt
38bb89663d
replace old_x11 by HAVE_LIBXFT defined in configure
6 years ago
Holger Vogt
921058cb39
fix remaining bugs when EXT_ASC is defined
6 years ago
Holger Vogt
6e0b631492
Regain static behaviour, keep removing compiler warning
6 years ago
Holger Vogt
3a8e3d130c
update and unify font handling
6 years ago
Holger Vogt
bef9c70e71
Prepare font selection and rotation only once per graph
in func X11_DefineXft().
Only 0 and 90 degree are supported.
6 years ago
Holger Vogt
8312a8ade2
Select suitable default text color
6 years ago
Holger Vogt
3eb04b2fdc
improve on memory leaks
(not yet completely satisfying)
6 years ago
Holger Vogt
8f42eae6ab
add empty line after error message
6 years ago
Holger Vogt
a23748cf8c
Don't call DestroyGraph if graf id is 0
6 years ago
Holger Vogt
673069f442
add to the source window after 'source' command
6 years ago
Holger Vogt
fd96983099
Reset DevSwitch before returning
6 years ago
Holger Vogt
e7022f7fae
utf-8 string length determined by strlen
6 years ago
Holger Vogt
ac1c8c4a96
return NULL upon NULL input
6 years ago
Holger Vogt
93be5bab0c
increase buffer size, send text to string window,
retrieve the correct number of byte after utf-8 conversion.
Answering to a promt (e.g. after command 'hardcopy') does not
yet do.
6 years ago
Holger Vogt
510b1865b4
Re-sort wide char variable definitions.
add utf-8 ... utf-16 conversion.
Strings in history buffer shall remain utf-8.
History buffering is not yet working.
6 years ago
Holger Vogt
7a41921035
prevent crash if 'hardcopy' is given without parameters
6 years ago
Holger Vogt
6edb0eea41
re-organize PS color selection
Improve settings for PS image
Improve error messages
6 years ago
Holger Vogt
18f1e896f8
allow independent linewidth and gridwidth settings from within the .control section
6 years ago
Holger Vogt
7c0b72c387
prevent compiler warnings
enable short GUI interaction from within spfactor.c
6 years ago
Holger Vogt
bd7b35541d
Lengthy op calculations make the Win GUI unresposive.
A macro adds a short travel to the GUI fro0m within
the matrix ordering and factoring. Time overhead
during op is less than 0.5%.
8 years ago
Holger Vogt
3d009fef22
Variables xbrushwidth and gridwidth (to be set e.g. in
.spiceinit) allow setting separately the linewidths of the
graph (xbrushwidth) and the grid (gridwidth).
8 years ago
Holger Vogt
c9edc6fcb3
Add function returning the true string length in pixels.
May be called from outside of x11.c.
9 years ago