Tag Info

New answers tagged


You can use your own normalization function Histogram[RandomReal[NormalDistribution[], 1000], Automatic, #2/Max@#2 &]


The existing answers show how to perfectly generate small textures on top of the cuboids. Unfortunately, the resulting 3D scene it is quite slow when you try to rotate it (about one frame per second). I propose to use one GraphicsComplex object with only one texture (aka atlas) histogram[data_, cf_] := Module[{nx, ny}, {nx, ny} = Dimensions@data; ...


I was able to get rid of the light-colored bars at the bottom and top by passing a Graphics object to Texture, and setting the Background on that, like so: infoTexture[i_, o_, color_] := With[{text = Text@Column[{HoldForm["in" == i], HoldForm["out" == o]}, Right, BaseStyle -> {Bold}]}, Texture@Graphics[ text, Background -> color, ...


For some reason those lines are created during the rasterization of the thing inside Texture: Rasterize[ Style[ Column[{"in=" <> ToString@1, "out=" <> ToString@2}, Right, Background -> Green], Black, Bold ] ] As you can see, the lines are part of the rasterized image's background. Manually rasterizing the thing inside ...

Top 50 recent answers are included