why can't i use PlotMarkers -> Graphics[{Blue, Thick, Circle[]}, ImageSize -> 15] in ErrorListPlot in mma 11.3.. The error bars missing whenever I use that
many of WRI web pages are either down or too slow to come up, this has been for many hrs now. I wonder if this is because they are making changes in them to announce version 12 !
I feel like I'm missing something obvious - is there a simple looping construct that will stop at the first minimum (ie, where the function stops descending)?
Consider something like f[n_]:=Abs[100-Length@FindClusters[pts, n]]. I know the best value for n is 6, but I want MMA to do it for me. I don't know how to get MMA to get the best value without saying "try every option between 0 < n < 50 and give me the smallest". I want to do something like "try the minimum number of options to give me the smallest". Perhaps a binary search or something.
I'm certain I'm just missing something, but I've tried Minimize, FindMinimum, etc and can't get them to return faster than just doing something like TakeSmallest[Table[{n, f[n]},{n,1,50}], Last]
the DiscretePlot would look like a V - afaik there is no way for there to be multiple minima.
(A binary search doesn't make sense I suppose, but I hope you get the idea)
Anybody have a good idea on how to sort these rectangles clockwise (or just so that they have a logical order that isn't north-south)
(or rather, whatever order it is that they currently have)
For context, these are for maps of trails I am making. Each rectangle is a page of a map, so there is a logical order for these things - the direction you would walk the trail.
(Extra annoyances involve: not all trails are loops, some trails have large offshoots or are multiple large connected loops; there are 42 of these so I really don't want to order them manually every time...)
in case anybody's curious the maps look like this:
(The underlying points of the trail are not strictly ordered either, and FindShortestTour doesn't really help because there are multiple sub-loops etc)
The idea is to judge the distance between two pages by the distance between the points inside them, and to find the shortest tour through the graph built this way
@CarlLange You could add this to the ImportAutoReplacements which e.g. convert == or -> to its named-characters. However, this will only work for the [[ and not for ]] obviously because the latter is not always the closing of Part.
@halirutan Mmm, I suppose it doesn't make enough sense since you'd want both left and right halves. Maybe they should have a little replacement after shift-enter...
@CarlLange I guess it is the reason why they didn't add this in the first place. You need context information to decide if it would be OK to insert ]] which the front end doesn't have.
@halirutan Yeah, which is why I thought after shift-enter, since they have the AST then and would know which brackets mean which. But hey, it would just be a nice shorthand.
@CarlLange For [[ I use the KeyEventTranslations from this answer mathematica.stackexchange.com/a/5221/58370. Control+] inserts [LeftDoubleBracket] followed by a placeholder followed by [RightDoubleBracket] so you can just start typing the part expression.