Questions tagged [plotting]

Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

Filter by
Sorted by
Tagged with
6
votes
1answer
1k views

Why is ListContourPlot so slow?

The process of ListContourPlot[] or ListDensityPlot[] is extremely slow comparing to Matlab's ...
1
vote
1answer
36 views

Plotting a function on the different axis

I've solved the DE: $$a\cdot x(t)+b\cdot\ln\left(1+c\cdot x(t)\right)=-p\cdot x'(t)\tag1$$ Where $x(0)=k$ And I got the following solution: $$t=\int_{x(t)}^k\frac{p}{a\cdot z+b\cdot\ln\left(1+c\...
1
vote
1answer
47 views

visualizing branch cut of a complex function

I'm working in the plotting the branch cut of a complex function, namely: $w(z) = (2+z) \ln(2+z) - 2(1+z) \ln(1+z) + z \ln z$. To do so, I have tried this: ...
0
votes
1answer
35 views

How to show multiple functions on the same plot? [closed]

I tried this: ...
2
votes
1answer
27 views

How do I use Labeled with ErrorListPlot?

Consider the following simple example of using ListPlot with Labeled data: ...
3
votes
1answer
37 views

Moving the position of the gray line in the plot

I have been making cantor type sets. I have the following code, how to lower the position of gray lines a bit so that I can see the intersection. The code is: ...
1
vote
0answers
32 views

Change colour of phase diagrams in ContourPlot [closed]

I am plotting the following phase diagram and am facing a lot of difficulties changing the colour of the lines in the graphic: ...
2
votes
1answer
27 views

ParametricPlot with condition for parameters

For example ParametricPlot[{Sin[x] - y, Cos[y] - x}, {x, -\[Pi], \[Pi]}, {y, -\[Pi], \[Pi]}] gives What should I do to impose ...
0
votes
0answers
30 views

DensityPlot3D in cylindrical coordinates

How to easily plot a function T[r,\[CurlyPhi],z] given in cylindrical coordinates similar to DensityPlot3D in cartesian ...
5
votes
2answers
104 views

Using Images for Points in ListPlot

I'm using ListPlot to label a sequence of ordered pairs in $[-1,1] \times [-1,1]$: Question: How can I make these points show up as images (from the web, etc) ...
2
votes
2answers
77 views

Placing Image into Center of Pie Chart

The following code ...
0
votes
1answer
131 views

How to ContourPlot a two variables (x,y) implicit function with y normalized?

I am trying to use ContourPlot to plot an implicit function. Now I have two variables (x,y) implicit function: ...
0
votes
4answers
134 views

How to extract the data points in tabular form from a 3D region plot

I want to solve an inequality e.g. RegionPlot3D[x^2 + y^2 + z^2 > 300, {x, 2, 9}, {y, 3, 10}, {z, 4, 12}] and store x, y, z...
0
votes
0answers
20 views

Error in plot - normalize

Generated equations using this: ...
2
votes
1answer
25 views

How to match value coloring in Plot3d to value coloring of legend

In a Plot3D I want to change the displayed value range, see the following example. The function generates the values {-1,1}, they are displayed correctly on the z-axis within {-2, 2}, but the color ...
43
votes
5answers
4k views

Saner alternative to ContourPlot fill

I am producing a large number of ContourPlot objects, which when exported generate notoriously large PDF files because it basically generates lots of little ...
2
votes
0answers
24 views

Exporting Texture to pdf with vectorized frame axes

If you export Graphics with frame like below ...
2
votes
0answers
37 views

Avoiding label bubbles overlapping horizontal line segments in TimelinePlot

I am creating a very large TimelinePlot, with perhaps six times the number of entries as in this near-minimal example (code below): Notice that bubble (labels) for the entries below the horizontal ...
3
votes
3answers
146 views

How to plot a Histogram and compare with a particular probability density function PDF

I would like to know how to plot a make a comparison between a histogram and a set of random data, I have the following probability density function (PDF) which is given for this problem. I can ...
2
votes
1answer
60 views

Rotate Ticks ( I was wondering if I could rotate the tick 90 degree without frame)

I was wondering if I could rotate the tick 90 degrees without a frame I appreciate any help because it is worth a lot ...
1
vote
2answers
50 views

Select one among multiple solutions that satisfies a certain condition and 3D Plot it with varying simulation values

My function is as follows: $$f(x)=ax^5+bx^4+cx^3+dx^2+ex+g=0$$ Since it does not generate an analytical solution, I tried to do a simulation exercise as follows. Simulation values: $a=-2$, $b=3$, $...
3
votes
1answer
41 views

How to draw several regions using one function returning List of True's and False's?

This is what I want: RegionPlot[ { y < x^2, y < 0.5 + 0.5 x }, {x, 0, 2}, {y, 0, 4} ] This code does not work (draws only one region): ...
1
vote
0answers
98 views

How to speed up the production of this plot?

This is a followup question to this question. From these two answers I can build the function sol[r][[1]][t0] as follows: ...
9
votes
2answers
212 views

Issue with FrameTick marks in Mathematica 11.3

Bug introduced in 11.3 or earlier and fixed on 12.0. For a while I have been using the same code to make figures with tick marks pointing out from the axes away from the center of the figure. ...
6
votes
2answers
206 views

Why does Rotate in PlotMarkers behave strangely?

Bug introduced in 9.0 or earlier and persisting through 12.0 While answering Change the inner color of markers I came across a behavior that may be a bug. I would like to know if there is another ...
6
votes
1answer
187 views

Bug in Export - known by Wolfram Support - upper plot margin depends on string length of upper horizontal axis label

Bug introduced in 9.0 and persisting through 12.0 or later ! See at bottom the answer by Wolfram Research. I am running Mathematica 10.3. For test purposes I have used the following code: ...
13
votes
2answers
562 views

ListLinePlot Filling Wrong

Bug introduced in 8 or earlier and persisting through 12.0 I used ListLinePlot to plot data from .csv files. However, the y-values from Graph 1 do not match to the ...
13
votes
3answers
3k views

Functional defined Ticks of LogLinearPlot does not work

Bug introduced in 10.0 and fixed in 12.0 version 10 $Version "10.0 for Microsoft Windows (64-bit) (June 29, 2014)" Consider three cases in ...
15
votes
3answers
456 views

Glitch in Filling?

Bug introduced in 8.0 and persisting through 12.0 or later I ran into a problem while plotting and I was able to narrow it to this. Before I start "spelunking" I'd like to know if I am overlooking ...
3
votes
3answers
56 views

Fitting a function, a (x - 1)^b, to a given set of data

I have some data: ...
4
votes
1answer
101 views

Unexpected results from ListContourPlot

Bug introduced in 8 or earlier and persisting through 12.0 I want to use ListContourPlot and I have lists such that, ...
0
votes
0answers
25 views

Getting error message RegionPlot3D::boolf

I want to visualize the bounded region for a linear programming problem. I used the folowwing, however it gives me an error : ...
15
votes
3answers
6k views

ListPointPlot3D with connected points?

With the command ListPlot[data,Joined -> True] I can visually connect adjacent data points in the array with lines. However, this option appears to be missing ...
0
votes
3answers
59 views

plot each column separately [duplicate]

I have an 800*161 matrix and I am trying to plot each column with respect to the 1st column.so I tried the following code ...
4
votes
2answers
182 views

How to put the parent node higher than the children nodes in a drawing for a graph?

I have a tree as below. Graph[{7 -> 2, 2 -> 3, 3 -> 4, 3 -> 5}, VertexLabels -> "Name"] However, I want the drawing would put parent nodes at a ...
1
vote
1answer
61 views

Graph lines with points at the ends

I want to graph ten lines (of a single color) with points at the ends. The points are "cells" and the lines are "veins". I have tried it as follows. ...
2
votes
3answers
209 views

Graphing a solid between two structures using spherical coordinates

How can I graph the solid that lies above the cone $z=\sqrt{x^2+y^2}$ and below the sphere $x^2+y^2+z^2=z$? I tried ...
0
votes
1answer
30 views

How do I add a plot label in this case?

I am fitting these data: ...
5
votes
1answer
318 views

ListPlot draws nothing

Consider the following simplified example: ...
4
votes
2answers
155 views

To plot branch cut of logarithm

I like to see the branch cut of the function: $$1 - z \ln[(1+z)/z].$$ If I plot it in the complex plane: ...
5
votes
2answers
182 views

Show two plots together: a two dimensional curve tangent to the maxima of a three dimensional plot

I have a list containing 3 columns and 6552 rows which can be found here. The plot of data is shown below: We have a cross cut ...
5
votes
1answer
119 views

Visualizing Riemann surface (two branches) of logarithm

I'm trying to plot two branches of the complex multi-valued function: (In a previous post - linked above-, Mathematica found the branch cut of the following function between -1 and 0) $1-z\ln[(1+z)/z]...
1
vote
0answers
67 views

Why do I always have a grey corner on my plot? [closed]

I have encountered a very wired plotting issue: I had a script to plot 6 triangles together in one graph as below (first figure). However, as you could see there are always two grey parts in the ...
0
votes
0answers
41 views

MaTeX in the labels

Writing Plot[Sin[2.5 x], {x, 0, 2}, PlotLabel -> Framed["a=1.5" // MaTeX]] I get the expected labeled plot: However, if I just change ...
3
votes
3answers
456 views

Plot a specific branch of a multi-valued complex function

Let's say I want to plot a branch of the following function $f(z) = \sqrt{z(z-1)}$. Let $z = r_1 e^{i\theta_1}$ and $z-1 = r_2 e^{i\theta_2}$. How can I tell Mathematica to plot the branch for which $...
0
votes
1answer
42 views

ListDensityPlot and interpolation order

I am working on a project that takes arrays of data and visualizes them using ListDensityPlot. I noticed, when I imported an array from a CSV file, the last column ...
8
votes
4answers
665 views

Plotting in polar coordinates, simple implicit curves

How can I plot $\theta=\cos r$ in polar plane? Of course I know that it is different from $r=\cos \theta.$
11
votes
1answer
181 views

What is the best way to use errors in mathematica M12?

Since ErrorListPlot has been superseded by new functionality in ListPlot for Mathematica 12.0, what is the best way to handle ...
9
votes
5answers
886 views

Polar contour plot in Mathematica?

I am following a text on fluid mechanics with MAPLE examples. I want to do the following ContourPlot in Mathematica in Polar coordinates: $$ (r^2-\frac{a^3}{r}) \...
0
votes
3answers
363 views

How to show decimal points on the axes frames in mathematica?

I have a set of data g1 and when plot using n1, i got the plot shown in figure below. I need to change the x-axis label from (1,2,3,4,5...) to (1.0,2.0,3.0,4.0,5.0) and y-axis label from (50000,...