jean-pierre charras
06074d9192
Simulator, plot panel: Honor dragging in Y direction.
Fixes #15914
https://gitlab.com/kicad/code/kicad/-/issues/15914
2 years ago
Jeff Young
ab89038fa8
More protection for drawing dashed lines on MSW.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15888
2 years ago
Jeff Young
54277b1e8b
Fix plot clipping when edge values are interpolated.
2 years ago
Jeff Young
85c218f794
Fix missing member variable initialization.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15914
2 years ago
Jeff Young
aab0696bb6
Zoom undo/redo for simulator.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14580
2 years ago
jean-pierre charras
e152f97f35
Fix minor Coverity warnings. Small code cleaning in pcb_parser.cpp
2 years ago
Josue Huaroto
33f5483bc9
Change Y min/max limits in simulation plot window
2 years ago
jean-pierre charras
cbcaaa001c
fix some Coverity and compil warnings.
2 years ago
Josue Huaroto
27048ad4d2
Half number of ticks according to window size
2 years ago
Seth Hillbrand
db8e15ce88
Require wxWidgets 3.2
Removes old defines and work arounds for earlier wx versions and adds a
CMake requirement to use at least 3.2 (or the minimum matching wxPython
version)
2 years ago
Ian McInerney
f463b9d017
Don't calculate minor ticks when there are no major ticks to be between
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15179#note_1480427547
2 years ago
Jeff Young
8ac49d0bab
General cleanup, coding standards, removal of dead code, etc.
2 years ago
Jeff Young
f897b4bac1
Remove cover routines for std::vector.
They just make it harder to see if we're following std::vector's
contract.
2 years ago
Jeff Young
06f19aa761
Implement y axis locking for secondary y axes.
Still a bit of a work-in-progress.
Also fixes some bugs with formatting of measurements and cursor values.
2 years ago
Jeff Young
9c08d4febe
ADDED support for simulation plot margins and GUI for Y axis locking.
2 years ago
Jeff Young
65f66755ee
Reduce overhead for unused code.
2 years ago
Jeff Young
764913207c
Read legend position from workbook.
2 years ago
Jeff Young
bde9c2cbc5
ADDED FFT analyses.
CHANGED abandon the unpredictable behaviour of the Simulation Command
dialog. You now separately add simulation tabs (which have invariant
command types once created), and the dialog edits the current tab.
Also a bunch of bug fixes to make multiple simulation plots actually
work.
2 years ago
Jeff Young
87c106965d
Code clarity.
2 years ago
Jeff Young
9199d7a781
Update simulation results as the sim runs.
Also adds a time axis which grows by 2X at a time rather than to the
size of the current data.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11255
3 years ago
qu1ck
0c049eccc7
Fix a bunch of compiler warnings
3 years ago
Jeff Young
a14c017def
Save location of legend in worksheet.
Also provides a different cursor when over a legend (to make it clearer
that you can drag it).
3 years ago
Jeff Young
ec6d709929
Make sure legend reflects gain/phase for AC small signal analyses.
Fixes https://gitlab.com/kicad/code/kicad/issues/14301
3 years ago
Jeff Young
6f44b85c13
Formatting. (No functional changes.)
3 years ago
Jeff Young
fe9370ceea
Don't allocate all of memory when the coord system turns inside out.
Fixes https://gitlab.com/kicad/code/kicad/issues/14088
3 years ago
Jeff Young
9a0aeb4344
Adjust AC-small-signal plot names when saving placeholders.
Fixes https://gitlab.com/kicad/code/kicad/issues/14016
3 years ago
Jeff Young
ae0cf19923
Nullptr safety.
3 years ago
Marek Roszko
c5a2c9c773
Try to prevent a crash in mpFXY::Plot
Fixes sentry kicad-c0
3 years ago
Jeff Young
1e756dbdd8
Save cursor positions in sim workbook.
3 years ago
Jeff Young
e5176ff4d6
ADDED power dissipation plotting and cursors.
Also fixes a bug so that voltages, currents and power dissipations are
only probed if the flag is set -- this keeps ngspice from throwing an
error if you probe something twice (for instance, if you have .probe
commands in text and turn off the auto-probing).
3 years ago
Jeff Young
39d35a8bec
Better cursor feedback for plot window.
3 years ago
Seth Hillbrand
fcc4b202db
Set interpolation/anti-alias in plots
This doesn't do much for Linux, but the interpolation modes for MSW and
Mac should clean up lines a bit in plotting
Fixes https://gitlab.com/kicad/code/kicad/issues/10239
3 years ago
Seth Hillbrand
b716afd6f1
Clarify various uses of "Center"
Distinguish between the english verb "Center" and the noun "Center",
which may be translated differently
Fixes https://gitlab.com/kicad/code/kicad/issues/11109
3 years ago
Jeff Young
c5e195bdff
Cleanup (includes and formatting).
4 years ago
luz paz
5f1e9bc8a7
Fix typos in source code
5 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
5 years ago
Jonathan Haas
55679be2e3
Fix some typos across the codebase
5 years ago
Dominik Wernberger
e2aa7be4b3
Added a lot of consts and refactored a few lines
5 years ago
jean-pierre charras
c155218582
Sim plot: fix a rounding issue that can create a missing point in a plot.
Due to a truncation when converting a value to integer, the first point was
sometimes missing because it looked like out of plot range.
Fix also a cosmetic issue in dialog.
Fixes #7345
https://gitlab.com/kicad/code/kicad/issues/7345
5 years ago
jean-pierre charras
42350a4928
Minor code cleanup: remove useless include or useless code.
fix also a minor compil warning
5 years ago
jean-pierre charras
3f8c9d49f8
Revert "Code cleanup: remove useless wx/wx.h include inside a few files."
due to compil issue on Linux
This reverts commit cffccc3970 .
5 years ago
jean-pierre charras
cffccc3970
Code cleanup: remove useless wx/wx.h include inside a few files.
in most of files, including wx.h is not necessary, when only 2 or 3 wx files must be included.
Moreover, on windows, including wx.h sometimes create compil warnings about
shadowed vars defined in some specific windows headers.
5 years ago
Ian McInerney
c40470ed0b
Initialize more variables
5 years ago
jean-pierre charras
d122321162
mathplot.cpp: fix an issue in plot function optimization.
5 years ago
jean-pierre charras
d1e2b57d96
mathplot.cpp: optimize a plot function to have a better look for dashed lines,
and less lines to plot when they can be merged.
5 years ago
Wayne Stambaugh
ede39780e2
Remove all debugging output that cannot be disabled.
The use of printf, wxLogDebug, and std::err/std::out causes excessive
debugging output which makes finding specific debugging messages more
difficult than it needs to be.
There is still some debugging output in test code that really needs to
be moved into a unit test.
Add debugging output section to the coding policy regarding debugging
output.
5 years ago
jean-pierre charras
0103164571
Simulator: optimize a plot function, to support large amount of points.
Redundant points are not plotted.
Fixes #4737
https://gitlab.com/kicad/code/kicad/issues/4737
5 years ago
Jeff Young
8eb15fe911
Tidy up some Coverity issues.
6 years ago
Jonatan Liljedahl
f433037dcd
Eeschema: simulator: allow dotted traces for current and phase.
ADD: Allow drawing of current and phase traces with dotted style
for easier differentiation from voltage and magnitude. The option
is available in the View menu of the simulator.
6 years ago
Seth Hillbrand
b5f021ff9f
Cleanup: Replace push_back with emplace_back
In cases where we create a new item and immediately push into a
container, the emplace idiom is faster and more efficient.
6 years ago