Timeline for Implementing hexagon binning in mathematica
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 18, 2023 at 16:15 | comment | added | Kvothe | On Mathematica 12.1 on Linux this produces a lot of errors and only red "error blocks" as output. Running the cell a second time (same kernel) it produces even more errors but does also output the correct figures. | |
Aug 31, 2015 at 1:58 | comment | added | Dr. belisarius | @Valerio Rescale your data instead :) | |
Aug 30, 2015 at 19:03 | comment | added | Valerio | @belisarius this function is awesome but i need to use bins with unequal width and height. they'll look hexagonal with an appropriate 'AspectRatio'. is it possible to modify your function in order to do so? | |
Jul 8, 2013 at 0:30 | comment | added | geordie |
This is super! Also, PlotRangeClipping did the trick. Thanks for posting the update!
|
|
Jul 7, 2013 at 16:41 | comment | added | Dr. belisarius | @RahulNarain Yep, I saw it, thanks. But I've mainly focused on the graphical aspects, so I prefer to leave out your performance improvements so each answer has its own merits. Upvoting yours now (I forgot to do it earlier), BTW | |
Jul 7, 2013 at 16:29 | comment | added | user484 | You may want to steal from my updated answer, too... :) | |
Jul 7, 2013 at 15:08 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
deleted 1369 characters in body
|
Jul 7, 2013 at 14:39 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
added 14 characters in body
|
Jul 7, 2013 at 14:34 | comment | added | Dr. belisarius | @geordie I tried to make a standalone function. See if it fits you | |
Jul 7, 2013 at 14:30 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
added 1436 characters in body
|
Jul 7, 2013 at 13:35 | comment | added | Dr. belisarius |
@geordie Re: Cropping. Try with these two options combined: PlotRange -> { {...},{...} } and PlotRangeClipping -> True
|
|
Jul 7, 2013 at 6:54 | comment | added | cormullion |
+1 that's sweet (like honey! :)). You can do it without the Polytopes package: Hexagon[w_] := Polygon[w + N[#] & /@ (Through[{Cos, Sin}[Pi # /3]] & /@ Range[0, 6])]; then ..Rotate[Hexagon[cs] .. .
|
|
Jul 7, 2013 at 4:15 | comment | added | geordie |
This is great. I have incorporated your answer into a standalone function with inputs honeybin[xdata_, ydata_, cs_, {{xmin_, xmax_}, {ymin_, ymax_}}]:=... and the dimensions of the verttri array set by Max@xdata + padding etc. I can post it as an answer unless you want to do something similar? Also, I couldn't find a way to crop the hexagons within the axes (i also tried Framed->True ). any suggestions? should I post what I have?
|
|
Jul 7, 2013 at 2:48 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
added 94 characters in body
|
Jul 7, 2013 at 1:23 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
added 19 characters in body
|
Jul 7, 2013 at 1:14 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
added 19 characters in body
|
Jul 6, 2013 at 23:53 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
added 1 characters in body
|
Jul 6, 2013 at 23:46 | history | answered | Dr. belisarius | CC BY-SA 3.0 |