@Kuba also did you know "DefaultText" is a possible second argument to ExportPacket? It pulls the format from TextClipboardType, which can be "Package" in which case Mathematica actually respects CurrentValue[$FrontEndSession, {"ExportTypesetOptions", "PageWidth"}]
I am looking at this question, the first drawback that @AlexeiBoulbitch mentions is that Mathematica does not have a nonlinear FEM solver. Since, V12 that is no longer true. I put a note under Alexei's post about a week ago asking for permission to strike through that sentence. Alexei, unfortunately, has not logged on since about two weeks.
I could just make the change myself but I absolutely want to avoid the impression that I am editing posts to the liking of WRI. What do other people think: should I wait a little longer for Alexei's permission or should I just go ahead and make the change?
@user21 I'm sure he doesn't mind. It is an objective information and no one would think that there is a hidden WRI agenda behind the edit.
I would say go for and make the edit. It's far more important that people know that this is possible in 12.
Additionally, I might have an subjective opinion on this, but you and Leonid appear to me as two WRI employees that often seek the critical opinion on their work here. Not sure how often I have read something along "I worked on XXX, I would love to get feedback" from you. I consider you an important asset of this community although you are working for WRI.
@halirutan, OK, I made the change. Better to ask and make it public then to be sorry later. If anyone objects that change let me know and we will find a solution.
@b3m2a1 how is DynamicLocation not an obvious flashy feature they should have intention to document? Interactive dashboards where many plots are supposed to be created automatically rather than polished manually for publications it is very useful.
@Kuba yeah not exactly sure. If I had the time and energy I'm sure I could think up lots of fun things to do with it. Lots of cool potential for animations or for embedding plots inside other plots and things.
How the hell do I do evaluation control in Mathematica/
The documentation is dire on whether: once a function is evaluated its arguments are evaluated once (?). Or how I can simply evaluate a function aat a depth n of evaluation
Two livestreams today, guys! The first Twitch Talks (developers demonstrating new functionality) is at 12p central. Then Stephen will have a Live CEOing stream today at 1:30p.
@Kuba Do you know the Lieb-Liniger Bethe Ansaz model?
Basically I'm solving each state by punching holes in some N particle ground state one by one
So the idea is that I'm solving for some N particle state for Nh holes, which leads to N over Nh combinations. I'm doing it in a bunch of Do loops, which I wish to create using Fold
Fold[Do, <stuff>, <iterators+bounds>] works fine, until I want the iterators to depend on each other
So the next step is to evaluate the iterators from the outside all the way in, so that at every point all the values attached to the iterators (inside/assigned by Do) are known
I thought that maybe Nesting Hold's and ReleaseHold's, or Evaluate and Unevaluated would do something like that for me
FYI, ListLinePlot with many points and dashed lines crashes MMA 12 under Win10. I confirmed with support. For now I'm not using Dashing when plotting large datasets. The following reproduces the crash for me. You may need to resize the output to trigger it:
@gdelfino Could you narrow down the bug? After all, ListLinePlot is only creating a normal graphics with lines. Would this be an issue, if you created the line-strip by yourself or is it a bug in ListLinePlot?
No. It is not a bug in ListLinePlot. It is in the front end (Windows) when rendering long LineBox with dashings. I had this notebook that just opening it would crash the FrontEnd and that is how I found it. The code above produces something similar. Also notice when you resize the resulting plot that it is much faster without the dashing.
@gdelfino - is it possible to reduce the number of points? ListPlot and friends ListDensityPlot and ListLinePlot do not resample the data, they will create a Graphics object with as many points as you give them. In your case, I think the front end is having trouble drawing 40,000 dashed lines
even without the dashing, while you do get a result, it really slows down the front end just to have it on screen
I agree that the FE hang from your input with the dashes is not good
@halirutan ah I see. I can definitely make that happen. Had a few new plot-size-calculation bugs to clean out but it's working fine again. I can add a quick rule to handle CapForm as a directive too.
Unfortunately it's not really possible to get a size-adaptive Thickness but I found .008 looks good at small size and .003 looks good when large.
At one point I also toyed with resizing some of the interior polygons to make them smaller. This reduced the skew, but I think there needs to be a different resizing factor for lateral and vertical.
Consider the following small SVG showing two adjacent triangles:
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" version="1.1">
<polygon points="10,0 60,0 35,50" style="fill:#cc4444;"/>
<polygon points="35,50 85,50 60,0" style="fill:#cc3333;"/>
</svg>
This renders as f...
One other thing I was thinking about it it might be able to use the Region stuff to create a single background color (say red) that could be used and then smaller polygons could be layered on top of that
This way if you made things smaller the lines would be less apparent
@b3m2a1 Yes, I also thought about a layered approach, where you draw polygons onto another, but then I'd had to touch the logo code and I'm not sure how hard the problem (esp. the distance-related coloring) becomes.
@CarlLange They certainly have invested a lot, and they've made a very successful product out of it, Wolfram Alpha, that is probably a sustainable company on its own by now. I'm actually surprised to hear that Wikidata could replace what they've created (although this isn't the first time I've heard you say it).
I would like to match triplets from two RDFStores on the string value of one containing the string value of the other. To test this I made the following stores by using some code from the documentation.
Needs["GraphStore`"]
foaf[s_] := IRI["http://xmlns.com/foaf/0.1/" <> s];
personData = RDFS...
@Edmund You asked at the right time :) I'll give it a look in a little while :)
@C.E. Yes, exactly! What's particularly cool is that you can already link from Wikidata to the knowledgebase wikidata.org/wiki/Property:P4839
So in theory we could get some properties from the knowledgebase and others from wikidata, or something, if you want. It's really worth them exploring this...
Since I'm about to start walking again, those are the 7 trails (800km or so) of the 42 trails (4000km) that we have left to walk at toughsoles.ie! Just thought it was cool :)
@halirutan that's probably coming from the path I layered in the background. Used RegionDifference to construct a GraphicsComplex but I think the region doesn't have large enough gaps.
Is there a Wolfram SPARQL endpoint for entities? I tried to query the entities with the SPARQL functions and it appears to be downloading the entity graph store.
Nothing like a bit of Comic Sans to show we're serious
@halirutan what do you mean by correct each character? I guess I don't quite understand enough about fonts on the web to figure out why plain text would pixellate.
@b3m2a1 We know the final pixel-size of logo on the web-page. Usually, I create a grid in Adobe or Inkscape of that size. Then, I layout the text so that it has good size and that spaces between graphics and text look good. Finally, I'm looking at each character separately and move them tiny bits so that e.g. the upstrokes of the "M" fit into full pixels.
We had this issue with the first "new logo" that SE provided where the bottom line of the "Mathematica" text did not end exactly on a pixel leading to ugly antialiasing artifacts.