Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
Frida
Commits
27924f97
Commit
27924f97
authored
14 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
bugfix rounding of axes
parent
dc8346a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
TODO
+6
-3
6 additions, 3 deletions
TODO
pub/CHANGELOG
+7
-0
7 additions, 0 deletions
pub/CHANGELOG
pub/src/axis.cpp
+14
-8
14 additions, 8 deletions
pub/src/axis.cpp
with
27 additions
and
11 deletions
TODO
+
6
−
3
View file @
27924f97
...
...
@@ -3,7 +3,6 @@ SHOWSTOPPER TOFTOF
-Fehlerbalken
BUGS
- S(2th,w) statt S(q,w)
WISHLIST TOFTOF
- Symbolerklärungen zu Plot
...
...
@@ -15,7 +14,6 @@ WISHLIST TOFTOF
WISHLIST JWu
- distribute wupscat, wupsbb
- frida.ini location via -D ?
- restore ask callback help for lists (prompt for list, not for string)
- restore help on "?"
- wenn oio mehrere einzelne Spektren liefert, automatisch in einen File packen
...
...
@@ -29,6 +27,11 @@ CHECK - gd: commandos -> gnuplot (für Fanni)
- mfj remove redundant doc lines
- dp output for #spec>1 is obfuscated
- customization
- frida.ini location via -D
- private ini file
- additional settings: graph mode
SEBASTIAN
= erledigt =
...
...
@@ -38,6 +41,7 @@ SEBASTIAN
- in calc mode: ni[0.1] should not exit calc mode
- after "g\n": gxl is mixed up with gxf+/gxf-
- when oio is called with parameter, do not print list
- deal better with inf scale
= vorrangig =
...
...
@@ -64,7 +68,6 @@ SEBASTIAN
- allow "for loops" in fit functions
- cut file with many z values
- allow a w-dependent expression for the resolution
- deal better with inf scale
- make comments in ps file complete (was somehow not complete in the apparent elastic intensity case)
- extract these commands from a ps file and "\i" it (to change limits, for example)
- command to show only fit function (and then possibly "> file.txt")
...
...
This diff is collapsed.
Click to expand it.
pub/CHANGELOG
+
7
−
0
View file @
27924f97
- major code refactoring:
- online memory and z-entry main vector now based on shared_ptr
- sources split (olf/mem, opr/special1, dualplot/axis)
- scan and parts of curve now unified in zentry
- reduce .h dependencies (keyword "class"; move implementation to .cpp)
- suppress menu when answer is already given (oio, ..)
- bugfix in plot axis rounding
- bugfix mfj: z coordinates, rPar
- add \wh meta command: write history, using GNU history
- purge and simplify macro engine; separate meta commands and macros
...
...
This diff is collapsed.
Click to expand it.
pub/src/axis.cpp
+
14
−
8
View file @
27924f97
...
...
@@ -89,13 +89,13 @@ void CAxis::setRoundedLimits( string axnam, double _inf, double _sup )
static
double
digits
=
2
;
if
(
_inf
==-
INFINITY
||
_sup
==+
INFINITY
)
throw
"
unexpected inf limits when rounding "
+
axnam
+
" plot range
"
;
if
(
_inf
>
=
_sup
)
throw
"
Cannot
round "
+
axnam
+
" plot range "
+
strg
(
_inf
)
+
"
..
"
+
strg
(
_sup
);
throw
"
BUG: rounding "
+
axnam
+
" limits: unexpected inf limits
"
;
if
(
_inf
>
_sup
)
throw
"
BUG:
round
ing
"
+
axnam
+
"
limits: invalid
plot range "
+
strg
(
_inf
)
+
"
>
"
+
strg
(
_sup
);
if
(
logflag
&&
_inf
<=
0
)
throw
"
Cannot
round
lo
g "
+
axnam
+
"
plot range
"
+
strg
(
_inf
)
+
" .. "
+
strg
(
_sup
)
;
throw
"
BUG:
round
in
g "
+
axnam
+
"
limits: nonpositive log inf
"
+
strg
(
_inf
);
inf
=
_inf
;
sup
=
_sup
;
...
...
@@ -104,9 +104,15 @@ void CAxis::setRoundedLimits( string axnam, double _inf, double _sup )
if
(
logflag
){
inf
/=
10
;
sup
*=
10
;
}
else
if
(
inf
>
0
)
{
inf
*=
0.9
;
sup
*=
1.1
;
}
else
if
(
sup
<
0
)
{
inf
*=
1.1
;
sup
*=
0.9
;
}
else
{
inf
-
=
1
;
sup
+
=
1
;
inf
=
-
1
;
sup
=
+
1
;
}
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment