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

learn more… | top users | synonyms (5)

1
vote
0answers
58 views

NDSolve Poisson PDE for rectangle with hole

When I solved the Poisson PDE with function NDSolve in a rectangular domain with hole in the center, and search the first derivative with x and y why appear these protrusions on the diagram around the ...
0
votes
0answers
34 views

Plot gives different result than direct evaluation (Plot[f[x]] obtains answer while f[x] fails)

I have a fairly complicated function that has its origin as the polarized intensity of light as derived from a so-called response function. In any case, it involves complex exponentials and other ...
2
votes
1answer
51 views

Set fontsize using setoptions not working in DateListPlot

I'm trying to use SetOptions to set the global font size for DateListPlot plots. My problem is that this is not working. Event this simple test does not change the font size: ...
2
votes
1answer
55 views

Improving a jagged Tube[ ] edge

While trying to improve this answer of mine, I found it difficult to get a smoother edge. Any ideas? ...
0
votes
0answers
62 views

Plotting FindRoot solutions against one parameter, varying another

I'm writing my question wholly anew as it has changed its form a bit and I've got some actual code attached as well. I've got a system of equations for which I find numerical solutions with FindRoot. ...
1
vote
1answer
24 views

When using PopupMenu other controls stop working

I have an interactive plot in a Manipulate expression with a PopupMenu. I want to be able to select the function being plotted ...
0
votes
2answers
45 views

How to plot a function and data at the same time?

I know that ListLinePlot allow to plot data, but I would like to compare my data with some analytic function in the same plot. Is it possible to listlineplot data and plot a function at the same time? ...
2
votes
1answer
97 views

Dual Axis Histogram

I'd like to plot two histograms on top of one another, but they have very different scales. Is it possible to plot a histogram with two y-axes, similar to the custom function found here for plots?
4
votes
2answers
166 views

ListLogLinearPlot for the whole real numbers

I have the followin data ...
1
vote
0answers
44 views

Mathpsfrag: failed setup at MathPSfragConfigurationTest (UnPSfrag) line (Windows 8)

I'm trying to follow the documentation on how to get mathpsfrag set up on Windows 8 (64-bit). It failed at the line ...
-1
votes
1answer
76 views

How can I plot a graph of an integral?

I want to plot the following function: $$\int \left(\frac{\Gamma (x+1)}{2}-\frac{\Gamma (x-1)}{2}\right) \, dx$$
0
votes
1answer
63 views

DensityPlot and KroneckerDelta

I have the following DensityPlot: DensityPlot[Sin[x] Sin[y], {x, -Pi/4, Pi/4}, {y, -Pi/4, Pi/4}, ColorFunction -> "SunsetColors", PlotLegends -> Automatic] ...
8
votes
3answers
370 views

Turning a set of random walk data 45 degrees

I have a set of data that is just a "random" (generated by me, not by computer) sequence of length 2000 of 1's and (-1)'s. I used it to plot a 1-D random walk where +1 is step up, (-1) is step down, ...
0
votes
1answer
48 views

Plot 3D with conditions and variables dependent on each other

I m trying to do something like this: ...
4
votes
4answers
142 views

Get Axes Range of Plot?

Say I have some plot plot = Plot[Sin[x], {x,0,10}] (*as an example*) Is there a way I can get the x and y axes min/max values from the "plot" variable? If I ...
3
votes
1answer
55 views

How to change line lengths in LineLegend

How can I shorten the lengths of the LineLegend[] lines in the following plot? Is there a way to control line spacing as well? ...
1
vote
2answers
195 views

3D Gamma function

I try to plot the following function: Plot3D[Gamma[1+0.5*(n+m)]/Sqrt[Gamma[1+n]*Gamma[1+m]],{n,0,1000},{m,0,1000}] I expect that for m=n and near to it the value ...
0
votes
0answers
40 views

3D scatter plot with specific collor for each dot [duplicate]

I'm a chemist and using cartesian coordinates I've created a 3D scatter plot of my molecule: There is one attribute that I want to show and it is a value that range from -6 to 6, lets say. I'd like ...
1
vote
2answers
117 views

Using Specularity effects and ColorFunction in Plot3d

I'd like to reproduce the 3d surface of the attached image . What I'm interested in, is the light reflection at the basis of the surface and the rainbowlike color. I use Plot3d and colorfunction in ...
0
votes
0answers
39 views

Export a 3D array (with time) from matlab to mathematica

I am using again Mathematica and enjoying it. I have a question, is there a way to do a "time" plot of 3D vectors? I try to be more clear, I have 12 vectors (3D vectors). They are changing over ...
1
vote
1answer
53 views

How to list plot data where the slope determines if it is plotted from a list of data?

I am trying to listplot data from a list of data where the slope of the curve determines if it is plotted. Example: Lets say the data measured is of the form x^2. I measure this data multiple times ...
0
votes
0answers
12 views

Dashed/Hatched filling in RectangleChart [duplicate]

I am making a RectangleChart where I want one of the rectangles to be hatched (dashed filling). You would think this would be easy in Mathematica, but I have not been able to find the code for this. ...
0
votes
2answers
83 views

How to change plot unit or scale the number of axis?

I want to use ms instead of s as the unit of x-axis. But frameticks seems not to work here as it cannot change the value of x-axis. How to replace the number of x-axis 0.0001 with 1 or 0.1? Or just ...
0
votes
1answer
41 views

Plotlegend does not work [closed]

I am trying to add a legend to a plot, but sometimes it work and sometimes it doesn't work and I don't understand why. For example, when I use the following code, I get as an error "Unknown option ...
0
votes
2answers
69 views

Plot Bivariate Data with Marginals

I would like to plot bivariate data along with the marginal distributions. I've arranged the plots in a GraphicsGrid as below but the marginals are centered away from the bivariate plot and I wonder ...
0
votes
0answers
50 views

ContourPlot color problems

I tried to use contourplot to a 2D fucntion with rescaled color, the code is given below ...
2
votes
0answers
45 views

Surface Plot 3D of a strongly concave shape

I have a list of {x,y,z} points that all lie on the surface of an object (model output from COMSOL). I would like to generate a graphics object that reproduces the surface. Ideally, I would like ...
2
votes
2answers
56 views

Problem with the BarChart3D function

I have a list of values {x,y,z} and I would like to create a 3D bar chart with axis x,y,z . ...
1
vote
1answer
68 views

The relative motion of the points about the common center of mass

There are 2 points with masses m1 and m2, their common center of mass   rC,r1 and r2 their radius vectors, r=Abs[r1-r2]. I built a trajectory of both material points, as well as their common center of ...
-1
votes
1answer
33 views

How do I get axes labels in a DensityPlot? [duplicate]

I am trying ...
2
votes
1answer
187 views

Weierstrass function

I am trying to create plot of the Weierstrass function in Mathematica. I wonder if it's possible, when I define this function as ...
2
votes
1answer
88 views

Is there a plot style for PolarPlot to look like matlab polar()?

The plot style of Matlab's polar function appears to be pretty conventional for antenna radiation patterns in the references I'm looking at (sometimes with tick markings that count +- from the ...
-1
votes
2answers
125 views
1
vote
1answer
69 views

Draw two curves and a surface

I'm trying to draw two curves and a surface, where one of the curves is to appear on the surface. Unfortunately the curves are drawn with very few points and appear extremely unclear. Is there a way ...
4
votes
1answer
67 views

How do I adjust error bar tick size with ErrorListPlot?

I'm making a plot of data points from an experiment and the error bars are quite small. I would like the vertical error bars to have wider horizontal lines so that they are easier to see. Are there ...
2
votes
2answers
63 views

Color points in ListPointPlot3D

I have some 3d points with coordinates and a value assigned to each point. I want to plot the points and depending on the value use a different color. I have tried to use the answer in ListPlot3D - ...
3
votes
2answers
140 views

How can I create a 3D representation of an object with known coordinates and adjacency table in mathematica?

Basically I want to create an object with specified coordinates and adjacency table, like in page two of this article. I'm completely new to using Mathematica, any help would be great! EDIT: So I ...
2
votes
1answer
76 views

What are Epilog x-Axis Positions In BoxWhiskerChart (with BarSpacing option)?

I have a dataset that has a number of groups with overlapping sets. There is a point in the group within the intersection of the sets that I want to highlight by placing a marker of that point between ...
2
votes
0answers
64 views

Plotting data with four variables; two labels for one of the axes

I am having difficulty related to 3D plotting task. I have a set of data points in the following form : ...
1
vote
1answer
40 views

Tooltip : Mapping list of Tooltip values to list of functions while plotting

How is it possible to map a list of Tooltip values to the functions being plotted? For example: Assume, f1[x], f2[x], f3[x]... are functions defined. {t1, t2, t3, ...} are the list of tool-tips to ...
-3
votes
1answer
52 views
0
votes
0answers
85 views

Combining GPS 3D plot with 2D map

I have seen the post on combining a listline plot with a Graphics 3d plot. I cant seem to get it to work with the map I import as described below. Thanks I have a series of 3D GPS points (long ...
0
votes
1answer
59 views
3
votes
1answer
48 views

Ticks not positioned correctly on spectrogram

For some reason if I set manually ticks on spectrogram, they are not drawn correctly. If you check on the first graph below it is in descending order from top to bottom (8000, 6000, 4000, ...), while ...
0
votes
0answers
92 views

Plotting: Magnetic field lines

I have data which I am trying to plot as 3D field lines. I need to plot points at coordinates i, j and ...
1
vote
0answers
22 views

How do I set a PlotStyle when plotting a Table of functions? [duplicate]

I want to plot several functions each with its own color. A MWE is as follows : Plot[{2 x, 3 x}, {x, 0, 1}, PlotStyle -> {Red, Green}] which works fine. Now, ...
3
votes
2answers
188 views

how can I bold the outline of conic section as the plane intercepts the cone?

Plot3D[{-5 - x - y, -Sqrt[8 x^2 + 8 y^2]}, {x, -5, 5}, {y, -5, 5}, Mesh -> None, BoxRatios -> {1, 1, 1}, PlotLegends -> "Expressions"]
-3
votes
1answer
60 views

How can I increase the font size in PlotLabel?

Manipulate[ ContourPlot[r*(y/x), {x, 20, 42}, {y, 20, 42}, ContourStyle -> Directive[RGBColor[1., 0.77, 0.], Opacity[1.], AbsoluteThickness[1.999], Dashed], ContourLabels -> False, ...
0
votes
3answers
74 views

Plotting 4 separate lines on a graph

I want to plot 4 separate lines on my graph but for some reason Mathematica is linking all my points into a single lines. My data: ...
0
votes
0answers
50 views

ParametricPlot3D doesn't work with components of a vector input

I can't understand why ParametricPlot3D works, when the input is a vector and does not work, when the input is separated components of the vector (it returns an empty plot). The same happens for ...