« first day (1827 days earlier)      last day (1400 days later) » 

8:13 AM
anybody here familiar with the parse python lib (kinda like scanf) and can help me understand why my code isn't working?
>>> from parse import *
>>> s = 'M 172.8,575.0399999999998 V 97.92'
>>> print(parse('M {:F},{:F} V {:F})', s))
None
Ok, I figured it out
 
 
1 hour later…
9:20 AM
@Dev-iL only in passing
side note: avoid star imports in real code (I even avoid them in interactive code)
 
 
2 hours later…
11:20 AM
I can use opinions on the above plot. Basically I have plotted stuff with integer "numbers" (call them quantum numbers if you want, n,m are for certain), with p_max=4, n_max=4 and m_max = n, then sum(p,n,m). Per p,n,m combi I get an amplitude, see plot. Now the big question is, how to plot this in a sensible manner? The above was produced by a simple scatter() call, but I feel like there's a lot of white space around tiny dots.
using scatter(n,m,60,amp,'s') I get large, coloured squares, perhaps that's already better..
 
@Dev-iL what was the issue?
@Adriaan so in the end these are actually all the values you plot, maybe with a different amplitude?
 
@flawr yes.
 
too many dimensions:P
 
Hehe, says the mathematician
 
right now it seems almost impossible to get an idea of the amplitudes right, most dots look blueish
 
11:29 AM
Yea, that's a problem. I might plot them logarithmic
 
@Adriaan everything > 2 is close to infinite
 
cbh.Position(1) = h(1).Position(1)+0.5*h(1).Position(3);
Warning: Error updating ColorBar.

 The reference object is invalid.
Why can't I update the position of me colour bar?
 
(no idea regarding the color bar) You don't want to change the way you plot these things, right? You're just looking for feedback on the amplitude axis?
 
@flawr changing the plot is fine, I want to find a way to visualise this "better" than to just dump a table with 4 columns (p,n,m, complex-iota)
 
maybe a table wouldn't be such a bad idea after all:) But I think since you want to make plots, the actual precise values do not matter that much, but you somehow want to show the "big picture" right?
 
11:35 AM
Slightly better, especially the red star to denote which spherical harmonic (n,m pair) has the highest amplitude for which p
 
but that you can already tell without the red stars. but you don't really get any information about the rest
there is just a blue soup
 
@flawr I can also make green soup if you like that more ... Nah, problem is that the boss wants to see this plot. Perhaps I should do like an article I saw, and just not plot any amplitude below a certain threshold, i.e. retaining only dots with "relevant amplitude"
 
I guess the logarithmic color bar is still the next best thing you can do righ tnow
 
that's made by taking the logarithm of the data (i.e. labels on the colour bar should be 10^)
 
already looks a lot better!
 
11:41 AM
Now to find out how to get the colour bar itself down to the middle...
 
can you maybe use a color bar where the most insiginficant (most blue in your case) points are the ones that pop out the least?
 
@flawr I can, what do you suggest? I'd rather not use hot, because then my top values are white-ish. Hm, can I invert hot?
 
@Adriaan definitely easiest with photoshop:P
 
Yea, I don't get why I can't update cbh.Position that crashed with the mentioned warning
 
@Adriaan yeah a reverse-hot with the black part cut of might work!
 
11:45 AM
I feel we're getting somewhere
I just need a nice, white plus in each of the red squares, right?
haha, a simple plot(n,m, w+') works marvels for that xD
 
you could also normalize the amplitudes within each of the four plots
 
@flawr no, I need to be able to show that P=1 has more energy all over the board than P=2 etc
 
ok I see
maybe add 1-increments to the y-axis, shift the y-axis to thr ight and remove the axis lines:P
maybe you can even squish the x-axis a little bit, to reduce the white space
 
So all that's left is to shift the colour bar down and get the colour bar title on top
whoops, and add my 1-increment x-ticks of course
> Setting this property has no effect when the parent container is a TiledChartLayout.
 
it's getting nicer and nicer:)
 
11:54 AM
Thanks TMW, then what's the point of a position -.-
So I can't move the colour bar down, otherwise it's fine now. Oh well
 
@flawr the main problem was an extra parentheses at the end of the format string. Another problem I encountered later was related to using F inatead of g to represent numbers (F assumes there's always a decimal point, and fails to return anything otherwise; this caused an issue for me because sometimes my inputs are integers)
 
@Dev-iL ah I see, yes this can be tricky, I have to dig thorugh the documentation EVERY TIME
 
@Adriaan Swiss flag??
 
12:14 PM
@AndrasDeak Swiss are very proud of their flag. Everything that gets made here, has the flag on it.
 
oh, that was actually your joke, sorry
I saw some dots on some earlier figures and I thought you actually wanted a plus
 
@Adriaan ooooh, I was wooshed:P
just make sure it has the right proportions:P
 
@flawr 80mx80m, right? Why climbed that darn thing last Sunday, and they sure were proud of that flag.
 
haha
the biggest swiss flag of the world why would anyone else want to make a swiss flag...
 
@flawr exactly my thoughts when I saw that :P
 
to be fair though, the Iranians make quite a few Israeli and American flags for burning
@flawr yup, saw that.
 
:)
too many people make non-square flags, or just glue together 5 squares
 
@flawr Nepal also has a brilliant flag shape. Double-triangle all the way!
Oh well, ours often gets swapped with the Luxembourgish flag. Not too surprising, as theirs is a bleached version of ours. There have been "incidents", e.g. at some press conference of our prime minister in Russia 10 years ago, where the mistake was only noticed after 5 minutes, so there was a small "break" without photos, in order to get the correct flag :P
 
12:42 PM
you should have a monochromatic orange one instead
 
@AndrasDeak en.wikipedia.org/wiki/List_of_Dutch_flags we do have an orange streamer for when the king's around
 
1:25 PM
close enough ;)
 

« first day (1827 days earlier)      last day (1400 days later) »