« first day (2684 days earlier)      last day (22 days later) » 

3:25 PM
On Windows, M12 or 11: is it known or documented that ImportString[ExportString["a\n", "Text"]] ===
ImportString[ExportString["a", "Text"]] gives True? Why is an explicit newline character disappearing?
 
3:44 PM
Why the y-axis ticks are almost invisible (light grey in color) when a graph is saved as svg in both MMA 11.3 and 12 : LogPlot[Exp[-t], {t, 0.0, 2.0}, PlotRange -> {{0.0, 1.5}, {0.01, 10^0}}, Frame -> True, FrameStyle -> Directive[Black, Thick], FrameTicksStyle -> Directive[Black, FontOpacity -> 1, 20], PlotStyle -> {Black, Thickness[0.005]}, AspectRatio -> 1/GoldenRatio] (I use ubuntu 18.04)
 
3:59 PM
@RolfMertig The question could be reduced to : is it known and documented that ImportString["a\n"] gives "a" and not "a\n"
Sorry, I mean InputForm[ImportString["a\n"]] gives ...
 
 
1 hour later…
5:23 PM
@andre314 Maybe. My real problem was that I wanted to write a file with a trailing newline, but need to read it in, modify and write it and out again. And of course I can just add an extra \n, but I find it strange and not documented.
 
(Dear whatever mod caught my flag of a "not an answer" last night: you're right, that was a mistake on my part, sorry about that. don't drink and flag)
 
 
3 hours later…
8:33 PM
I'm looking at this question about how to extract data from a graph. All the linked questions deal with linear scales, which makes conversion from pixels to actual values easy. What am I supposed to do when I've extracted the pixel information from this image with logarithmic scale? How can I relate that information to the y value in log space?
 
8:58 PM
Normally we would take the number of pixels between e.g. y = 0 and y = 10 and divide by 10. That way we get the relationship between pixels and y. But in the case of the log, we can't simply take the number of pixels and divide by Log[10] because log is nonlinear?
 
@C.E. Maybe just focus on the exponents (which the axes are linear in), do the usual (whatever that is), then take 10^y to get the values
that is, imagine the y-axis was labeled from -7 to -2
 
9:20 PM
@ChrisK I'm trying, but I'm probably making a silly mistake somewhere. Don't feel any pressure to look at this, but here is my attempt.
 
10:19 PM
@C.E. I have some ideas
in calculating ky don't forget to subtract the origin value (Log[40]) in the denominator
in scaledCoords I think you need to divide by k not multiply
finally put that 40 back in at the end by multiplying
 
@ChrisK I'm much obliged. The division you are certainly right about. You seem to be getting the right values, so it is hard to argue against any of this, but I don't understand why I need to subtract Log[40]. I got the 500 off of the y-axis. It is not a pixel value, like 40.
 
10:35 PM
@C.E. the origin isn't y=1 (Log[y]=0) but y=40 (Log[y]=Log[40])
that is, the origin isn't (0,0) but rather (0,Log[40]) (in logged coordinates)
 
@ChrisK oh... I thought it was. Thank you very much, now this makes sense...
 
glad to help out - sometimes good to have an extra pair of eyes
 
yes, definitely
 

« first day (2684 days earlier)      last day (22 days later) »