Guys, if I have two lists {a,b,c} and {d,e,f} and I want to to make a graph object {a->d,b->e,c->f}, How can I write a function to do so? This doesn't work: f[one_,two_]:=one->two;
@halirutan Ok, that is the form I have the list in. Then I transposed the list to try and create the rules. Hold on.. let me mess around with it a bit without transposing.
@halirutan It appears that there are feeds for the mathematica, wolfram-mathematica and wolfram-language tags. I don't have time to clean this up now (and make sure I don't mess up anything). If you do, feel free to fix it. We need to check which tags are truly distinct.
@halirutan As I remember the problem is that these are SE-wide feeds that include all sites. And not all sites use the same tag names. SO have renamed mathematica to wolfram-mathematica, but some other sites have not.
So perhaps it cannot be fixed without missing some questions.
The undocumented RandomSeed and RandomSeeding options are showing up from the autocompletion menu in the FE (they correspond to ClusteringComponents and/or NMinimize functions according to some MSE posts)... Apart the fact that this is probably a "bug", it shows also the limit of having autocompletion without any context (RandomSeed is an OPTION name, i used that (without FE warning) instead of the FUNCTION SeedRandom).
Does someone know if there are plans to get a more context sensitive \ and useful auto-completion menu ? (as the number of functions / \ options / methods / ... grows very fast ? At least the autocompletion \ menu could mention or tag the name as a function or option or ...
@SquareOne I'd not be interested in plans. If something isn't meant to be shipped in V11.X then there is no point in waiting. And yes, there are plans about making autocompletion or fe resources customizable for users but so what :)
@SquareOne There is already context sensitive auto-completion. Options with string names are only offered inside functions. Options values are only offered inside functions. The issue is that RandomSeed is a symbol that exists and all symbols are auto-completed.
Also, as sloppy as it is, there are even some function names which are also used as option names.
Otherwise I so understand th frustration with RandomSeed. Just days ago I corrected someone's use of it, then the next day I misused it myself.
So far I have not found an example on site in which Charting`ScaledTicks or Charting`ScaledFrameTicks works in V11.1 as it shown to work in the answer....and I can't get it to work yet either. The frustrations of undocumented things... :/
I mean with FrameTicks. Haven't checked Ticks.
One problem seems to be Log of zero and negative numbers in plot range.
@MichaelE2 yep, fails. I'm not angry at ticks anymore, I just ignore them since ~2014. It is just ridiculous that there is no stable and general api. But at least we have famous people curves etc.
@MichaelE2 I will problably just put a note it is outdated. Thanks for checking.
Plot "holds" its arguments: It does not let them be evaluated until it has replaced all occurrences of x with a number. So it tried to evaluate things like Integrate[h[0.01], {0.01, -Pi, Pi}]
@Szabolcs @Szabolcs @Kuba The fact that this context sensitive auto-completion with option values exists only inside functions (and is very useful) shows that it is clearly possible to do more in that direction. I mean, auto-completion should absolutely know when you need a function or an option. If you start typing a new command in the FE, you clearly need a function not an option. This is not only not useful for the advanced programmer but also for the begginner.
@Kuba RandomSeed typos (instead of SeedRandom) in text only (not in code): this post and that one. I'll correct it.
Is it possible to open WL/M files and have auto-indentation apply the same as with NB files? I've been porting more code to WL scripts and I like the auto-indentation of notebooks. I could do all of the formatting manually, but I find I prefer just specifying where the new lines go and then letting auto-indent do the rest. But the auto-formatting information is stripped from scripts and everything is aligned left when I reopen.
@MichaelE2 I have a problem with ticks in ListLogPlots disappearing or changing in something linear when the notebook in which these plots occurs is loaded back. Haven't investigated yet in other versions, but it's 11.1.1 what I'm using now. Might be related.
@SjoerdC.deVries I've had problems with *Log* plots going back several versions. They get fixed sometimes, but now for personal use, I tend to favor regular plots and apply RealExponent[] to my function. In the case I ran into earlier today, it seemed that the plot range padding expanded the plot range into an interval with a negative end point. When Log was applied, the ticks failed at the complex result and returned an empty list of ticks.