Questions tagged [graphics]

Questions on the construction of 2D and 3D graphics through the direct use of primitives, directives, and functions. Include the graphics3d tag for questions specifically on 3D graphics. This tag is not to be used for basic questions on visualizing functions and lists using the various flavors of Plot commands.

420 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
26 votes
0 answers
1k views

ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples (i.e. {{x,y,z,f[x,y,z]}..}

From reading the documentation, it seems that ListContourPlot3D should work equally well on an array versus a list of tuples, ?ListContourPlot3D ...
Jason B.'s user avatar
  • 67k
21 votes
0 answers
2k views

Convert Mathematica graphics to TikZ?

Is there a package to convert Mathematica graphics to TikZ code (for inclusion in LaTeX source files)? Such a package, dated 2016-01-30, is described at http://library.wolfram.com/infocenter/...
murray's user avatar
  • 11.7k
17 votes
0 answers
2k views

Circle with negative radius?

Bug introduced in 9.0 or earlier and fixed in 11.0.0 Why does this work: Graphics[{Circle[{0, 0}, -Pi/4]}] But this doesn't? ...
David's user avatar
  • 14.8k
15 votes
0 answers
1k views

How to export .mtl files for 3D textured objects

I would really like to deploy my textured 3D graphics in the web with sketchfab in my blog. Unfortunately, Mathematica only exports the shape of the 3d graphics, i.e. the .obj file, but omits the ...
user5601's user avatar
  • 3,551
14 votes
1 answer
249 views

Is ExportString defective in V11?

Mathematica doesn't do the best job of exporting figures with shading or transparency to vector graphics formats such as PDF. A common trick employed here and elsewhere on the web to workaround this ...
Quantum_Oli's user avatar
  • 7,839
13 votes
0 answers
258 views

Tooltip/EventHandler misaligned with scaled graphics primitives they wrap

Bug introduced in 8.0 or earlier and persists through 12.2 It affects all event based wrappers for affected primitives. E.g. EventHandler. Which makes it a big ...
Kuba's user avatar
  • 136k
11 votes
0 answers
538 views

How to wrap a crumpled paper over a surface?

My initial question was about the making of a crumpled paper. After reading this article suggested by J.M. and little more browsing (kind of random walk you do on a Saturday) I thought about expanding ...
Sumit's user avatar
  • 15.8k
10 votes
0 answers
144 views

Why 99.998474% instead of 100%?

I want to export a red square to the SVG file Export["red_square.svg", Graphics[{Red, RegularPolygon[4]}]] I noticed that in the exported SVG file, the ...
LJFan's user avatar
  • 313
10 votes
0 answers
209 views

Why is 13 the smaller height dimension of a Graphics?

It seems that you cannot get a Graphics image with a height dimension less than 13. Trying to draw something and then asking for ...
Guido's user avatar
  • 331
10 votes
0 answers
372 views

Wrapping text around pasted graphic

I would like to use Mathematica to create all my documents for my high school math class. I cannot, however, find a way to copy and paste a diagram (let's say from Geogebra) and then place it where I ...
Neal's user avatar
  • 101
9 votes
0 answers
106 views

Artefact at joints within BSplineCurve of low Opacity

I want to eliminate the dots of higher opacity that occur at the joints within a BSplineCurve of low opacity. Small rectangles of greater opacity, shown below, ...
KennyColnago's user avatar
  • 15.1k
8 votes
0 answers
64 views

Styles inheritance stack for elements of a Graphics/GraphicsBox

You can skip to the bottom if you only care about the question. My original goal was to control FrameLabel color from a notebook level opposed to doing it ...
Kuba's user avatar
  • 136k
8 votes
0 answers
105 views

What is the philosophy behind \[Rule] (a.k.a. `->`) for assigning options?

Today I was banging my head against my desk when I realized that the problem I was experiencing was due to having typed ImageSize[Large] instead of ...
Kai's user avatar
  • 2,079
8 votes
0 answers
263 views

InterpolationOrder has no effect on ListContourPlot when the data is of the form {x,y,f[x,y]}

This is related to the issue brought up here, if you want to mark it as duplicate feel free to do so, but it is slightly separate. Take two sets of data, identical except for the form, ...
Jason B.'s user avatar
  • 67k
8 votes
0 answers
1k views

Minimalistic code challenge on Apollonian gaskets

I've been recently fascinated by the beauty, symmetry and mathematical richness of the Apollonian gaskets. So I felt myself challenged to see if it was possible to generate one in Mathematica with a ...
Luca M's user avatar
  • 997
8 votes
0 answers
331 views

GraphicsGrid Format Problem with SpanFromAbove

Bug introduced in 8.0.4 or earlier and persisting through 11.0.1 or later I believe this is a bug in GraphicsGrid. ...
Murta's user avatar
  • 26k
7 votes
0 answers
220 views

how to produce animated SVG

Let's say I have some animation stored as a series of frames in list, and I would like to export this so I can show the animation on a web page. I can produce an ...
Pirx's user avatar
  • 4,129
7 votes
0 answers
156 views

Possible Bug Inside Line + Graphics + PlotRange, Why and How to Fix It?

I work on Mathematica 11.0.0 I'm working on a ray tracing program and I need to visualize lightrays and their intersections. Everything works fine until today I tried to visualize two nearly parallel ...
Wjx's user avatar
  • 9,393
7 votes
0 answers
268 views

Graphics3D flickers in Mathematica 10 and Linux

Note: Fixed in version 10.0.2. Bug present in version 10.0.0. In the official Mathematica version 10.0, I get a very weird behavior when I try to rotate a 3d graphics The moment I click on the ...
halirutan's user avatar
  • 112k
7 votes
0 answers
1k views

Limiting the use of discrete graphics card on Mac

Apple's laptop running Mac OS have a pretty nice feature to make the battery last longer: the dynamically switch between the low-power integrated graphics card and the higher-performance dedicated ...
F'x's user avatar
  • 10.7k
6 votes
0 answers
114 views

Annoying black line in tilted LinearGradientFilling

Bug introduced in 13.0 or earlier and persisting through 13.2.0 or later. This bug is OS dependent. It appears on macOS and Linux, but not Windows. This ...
Emilio Ferrucci's user avatar
6 votes
0 answers
87 views

Bug? GraphicsGrid with Item Elements

Is there a bug in the GraphicsGrid routines such that it no longer handles Item elements? There are a couple examples in the GraphicsGrid documentation (under the FrameStyles section) that give ...
EricMock's user avatar
  • 291
6 votes
0 answers
150 views

New offset Dashing argument in 12.3

Bug introduced in 12.3 and fixed in 13.0 After finding out that in 12.3 two new optional arguments have been added to Dashing, I decided to have a look at them. ...
ThunderBiggi's user avatar
  • 1,195
6 votes
0 answers
123 views

HatchFilling becomes gray for small aspect ratio Rectangles

I am trying to use the new to version 12.1 graphics directive HatchFilling. Here is an example: ...
Hugh's user avatar
  • 15.9k
6 votes
0 answers
181 views

plot and sum colors of the common region in hyper-graph?

For the two complex weighted hypergraphs {$G_{1}: w1$ for edge $(d_{1},d_{2})$; $G_{1}: w2$ for edge ($d_{1},d_{3}$) } sharing one vertex $d_{1}$, I use different color for the complex angle and ...
Xuemei's user avatar
  • 1,576
6 votes
0 answers
101 views

ImagePadding -> Scaled inconsistency

Let us make a simple Graphics with Scaled ImagePadding specification and check the actual ...
Alexey Popkov's user avatar
6 votes
0 answers
125 views

Is this a BarChart bug and is there a fix?

Trying to adjust the plot range in bar charts produces an unwanted result where the bars extend below the baseline/below the frame: ...
Mike Honeychurch's user avatar
6 votes
0 answers
210 views

Export of GraphicsRow to PDF is ugly

I have a problem with exporting GraphicsRow[{Plot, Plot, Plot,...}] object to pdf. The line is like ...
MsTais's user avatar
  • 488
6 votes
0 answers
82 views

What are the possible options for the Appearance option of IntervalSlider?

IntervalSlider has a styling option Appearance -> ..., where possible options include ...
Quantum_Oli's user avatar
  • 7,839
6 votes
0 answers
141 views

Bug: FrontEnd crash with Locator, Arrow and Dynamic

Bug introduced in 10.1 or earlier and fixed in Mathematica 11.3 [CASE:3731068] It does appear that Locator is not behaving properly and can seemingly crash Mathematica's Front-end, and I have ...
masterxilo's user avatar
  • 5,679
6 votes
0 answers
305 views

Mathematica 10.4 crashes when using too many font sizes

While working on How to make the digits of π go around in a spiral like this? I encountered a problem that Mathematica would crash at regular intervals with an internal self-test error, either ...
Martin Ender's user avatar
  • 8,724
6 votes
0 answers
134 views

Tooltips do not seem to work with InfiniteLine (ConicHullRegion) in 2D Graphics

Fixed in 10.1 The InfiniteLine functionality added to version 10 is very handy for obvious reasons, however a Tooltip added to ...
MikeLimaOscar's user avatar
6 votes
0 answers
246 views

Texture[] not working properly with Image AlphaChannel

I recently encountered a problem when combining multiple texture layers in an graphics object when the texture comes from an image with alpha channel. Apparently the alpha channel of the image passed ...
Wizard's user avatar
  • 2,700
6 votes
0 answers
266 views

some Graphics output do not fully render on the screen until an extra click is made into the notebook

Sometimes when using a command such as Grid and looking at the output, some of the actual lines (frame, gridlines) that make up the display will be missing on the ...
Nasser's user avatar
  • 135k
5 votes
0 answers
521 views

How to export high dpi PDF graphics at a low physical dimension with small file size?

Exporting PDFs While it is seemingly obvious how to export higher resolution pdf vector graphics: https://mathematica.stackexchange.com/search?q=pdf+export+high+resolution There is nothing to be ...
CA Trevillian's user avatar
5 votes
0 answers
125 views

Specify an SVG encoding algorithm?

This recursive function definition creates a number series that I'm interested in: f[y_][x_] := f[y][x] = Mod[10 f[y][x - 1], y]; f[y_][1] = 1 When applying it ...
pgblu's user avatar
  • 249
5 votes
0 answers
336 views

Code behind these Video Playback demos?

There are only two known examples of video playback (from a file) within a (non-cloud) notebook: Visualizations in Graph Theory with the Wolfram Language (at time 3:32) Mathematica and CUDA, SIGGRAPH ...
user5601's user avatar
  • 3,551
5 votes
0 answers
84 views

Bug with exporting Image/Graphics into CMYK JPEG?

While answering the question (123118), @RussLyons pointed out that exporting graphics and images in CMYK JPEG does not function correctly. For instance: ...
JungHwan Min's user avatar
  • 4,624
5 votes
0 answers
994 views

Generating G-code from Mathematica

Has anybody generated G-code (used for controlling milling machines and plotters and other hardware) in Mathematica? High quality inexpensive plotters have reached the market and I would like to drive ...
Michael Stern's user avatar
5 votes
0 answers
84 views

Visualise sets giving some relations on those sets

I'm not very experienced with wolfram, but I'm searching for a function that can basicly do the following. Giving some sets $A,B,C$ and some relations for example $B \subset A$,$C\subset B$. I would ...
Kasper's user avatar
  • 279
5 votes
0 answers
257 views

How to fix a PDF line rendering problem in V9

If I run this in V8 ...
Mike Honeychurch's user avatar
4 votes
0 answers
197 views

Defining a "pathway" from a list of points

1. Description of Pathway 1.1 Preliminary Definitions Let $A=[-2,2]^2$, where $\text{Area}(A)=16$ and $\lceil \cdot\rceil$ is the ceiling function. For $\varepsilon\in\mathbb{R}$, let $\left\{U_i\...
Arbuja's user avatar
  • 27
4 votes
0 answers
90 views

Drawing a tree diagram

I want to draw a tree diagram, like this I use Wolfram do some work ...
我心永恒's user avatar
  • 1,382
4 votes
0 answers
115 views

Label Arbitrary Edges as Axes for 3D Graphics

In any 3D plot in Mathematica, there are 12 edges that, theoretically, can be labeled as axes. We can use AxesEdge to label some combinations, but not any ...
Just Some Old Man's user avatar
4 votes
0 answers
263 views

Interpolating vertex colors with trilinear coordinates instead of barycentric

In 3D graphics, vertex attributes like vertex normals, texture coordinates, and vertex colors are interpolated over the surface of triangles using barycentric coordinates. In actual fact it's more ...
flinty's user avatar
  • 23.1k
4 votes
0 answers
80 views

Drawing on screen outside notebooks

Is there a way to display (animated) graphics outside of Mathematica notebooks, i.e., in a specified rectangle on the screen? I can imagine that one way to achieve that is by creating a notebook ...
Math Gaudium's user avatar
4 votes
0 answers
68 views

Cannot access ColorFunction in ListVectorDensityPlot

Working on a vector field, I'd like to use a ColorFunction dependent on both the vector direction and its norm. According to the documentation of ...
xiaohuamao's user avatar
  • 4,688
4 votes
0 answers
89 views

Mathematica 12.1 Crashes when making large partitions of an image

I need to partition an image of dimension 1000 x 1000 for 200 x 200 parts. In order to do so I am using ImagePartition function but when I try to display the output ...
Atique Khan's user avatar
4 votes
0 answers
75 views

GeoListPlot - How can I create edges between points on a GeoGraphic object by clicking on them?

I'm attempting to use Mathematica to manually create a graph from a set of GPS coordinates (vertices). This graph will define the paths an autonomous rover will travel along. Here's what I have so far ...
Nicolas's user avatar
  • 41
4 votes
0 answers
62 views

How to fix the legend and dotted edges in WolframCloud?

Following the problems in my previous question: How to get good images for Graph in Published Notebooks I found a way to fix the aliasing issue, apparently, the ...
user13892's user avatar
  • 8,973

1
2 3 4 5
9