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

learn more… | top users | synonyms (6)

0
votes
1answer
40 views
2
votes
3answers
123 views

Integrate over Piecewise function efficiently

I have this Piecewise function: ...
9
votes
1answer
72 views

NumberLinePlot missing large segments of interval

What is going on here? Why isn't it extending to the full range? Removing the + 0.0 gives the correct ...
1
vote
0answers
62 views

3D game from my Magic cube [closed]

I'm a student of design. I created a Magic cube. How can I make this game with Mathematica? I have already imported a mesh *.obj with 192 triangles. If anyone knows how to do this please reply.
2
votes
1answer
103 views

Problem with code from Stan Wagon's book [duplicate]

Stan Wagon's Third Edition of Mathematica in Action has this code on page 30: ...
4
votes
1answer
133 views

Unexpected results from trying to solve Laplace's equation

I am trying to find the solution to Laplace's equation: $\dfrac{\partial^2 u}{\partial x^2}+\dfrac{\partial^2 u}{\partial y^2}=0$ over the following region of space: the vertices of the triangle ...
6
votes
2answers
112 views

PlotLegends “Expressions” default for ListPlot?

gwr pointed out an apparent problem with setting a default Option value of PlotLegends for DateListPlot. I traced the problem ...
0
votes
1answer
46 views

Axeslabel doesn't work when using Frame and FrameTicks,

I'm using FrameTicks and Frame to get a second y-axis. But then my axes labels disappear. I've solved it by using ...
2
votes
2answers
70 views

How to transpose x and y axis on a LogLogPlot?

how can i exchange x and y Axis of this loglogplot? ...
2
votes
1answer
62 views

Blank plot when using WorkingPrecision

I have the following code: Inv=WeierstrassInvariants[{1,I/3}] ...
3
votes
1answer
59 views

Display frame-tick labels on top side

I am making a standard framed Plot and would like the frame tick labels for the horizontal axis to appear on the top frame edge. I know I can do this by hand ...
6
votes
5answers
356 views

Help remove annoying vertical lines in a piecewise plot

I use the following codes to define and plot three piecewise functions. ...
1
vote
2answers
93 views

How to define a sequence of piecewise functions and then plot them altogether?

The following is the piecewise functions I want to define ${f_k(x)} = \left\{ {\begin{array}{*{20}{c}} {\frac{{j - 1}}{{{2^k}}}}&{\frac{{j - 1}}{{{2^k}}} \le f(x) \le \frac{j}{{{2^k}}}}\\ ...
0
votes
1answer
59 views

BarChart: Want to rotate and place a y-axis label on the left side

I would like to know if it's posible to place the y-axis label roated on the left side without using Frame->True and ...
2
votes
1answer
108 views

Plot a curve on a lattice

How do I plot a 2d curve and label lattice points to one side of it? I want to plot the curve $f[x]=\frac{1}{x}$, and draw a solid red dot at every lattice point in the following set: $$\{(m,n)\in ...
5
votes
1answer
108 views

VectorPlot only shows dots [duplicate]

I am trying to plot a electric field: vec = 1/(16 π ) Abs[{ex, ey, ez}]^2; ...
0
votes
1answer
42 views

Combining Plot and ListPlot using appropriate colours [closed]

I have Plot and ListPlot and I want to combine the using Show: ...
0
votes
0answers
55 views

Nesting a 2D Plane in a RegionPlot3D

So basically I am trying to project a 2D Region onto a 3D Region. Here is some code: ...
0
votes
0answers
34 views

Adding a legend to ListContourPlot [duplicate]

I am struggling to add a legend to my plots. I am using ListContourPlot and my data is ASiAufrontZnO, which is an array of data with three columns ...
0
votes
2answers
80 views

Easy way to add another parameter to Manipulate

Vector definitions: I'm sorry that I didn't include the Vector definitions. I forgot because I had them in initialization cells. Here they are: ...
-1
votes
1answer
64 views

ParametricPlot not plotting the results I'm getting from NDSolve

I try to plot a phase diagram with ParametricPlot but everytime Mathematica does nothing. I start by ; ...
6
votes
1answer
44 views

How can I specify position of ContourLabel? [duplicate]

Consider the ContourLabeled plot: ...
3
votes
0answers
83 views

StreamPlot of potential flow from a finite element calculation

I am trying to calculate a potential flow past a thick plate. The finite element calculation seems to go well but I am finding it difficult to get a nice plot of the flow. The stages below are, ...
2
votes
3answers
72 views

Initial value producing an error in a dynamic display

I have ...
2
votes
2answers
125 views

Plotting a function over a region

I want to plot $f(x,y)=\max(x,y)$ over this region $y > -3x + 9 $, $y > -x + 5$, $y > -1/3x + 3, x \leq 6 $ and $ y \leq 7$. I've seen some answers, but nothing that could be applied to my ...
3
votes
1answer
179 views

How to fill curves with a color gradient?

I would like to produce a graphic like this but with a continous color gradient between the outer curves. Is it possible to achieve this by using the Filling ...
5
votes
1answer
71 views

How to change the x-axis ticks from numbers to months

I have a ListLinePlot, for which the x-axis is time (November 2011 to January 2014). Now, when I plot it, the x-axis ticks run from 1 to 28 because the time ...
2
votes
1answer
83 views

How to change the font size of a pie chart's legend

I have a pie chart and I would like to make the font size of the legend bigger. I was able to make the fonts bigger for the chart labels but ...
4
votes
1answer
89 views

Vector tips seem to resize and get ugly in some situations

In Selwyn Hollis's CalcLabs with Mathematica, Multivariable Calculus, 5th ed., he does some nice initialization code for adding vectors to a plot. ...
11
votes
2answers
193 views

What will happen if I set ExclusionsStyle for points in 2D plot?

For example f[x_] := (x^5 - 4 x^2 + 1)/(x - 1/2); Plot[f[x], {x, -1, 2}, Exclusions -> {f[x] == 0}, ExclusionsStyle -> Dashed] Has the ...
0
votes
1answer
52 views

smoothing plot edges

I have a data list as mydata: ...
4
votes
2answers
129 views

Why do I need to apply DiscretizeRegion to a derived region to visualize it?

What are the design principles, or other explanations, as to why one needs to apply DiscretizeRegion to obtain a graphical representation of a derived region, ...
0
votes
1answer
50 views

Ndsolve parametricplot

Ndsolve solution cant manipulate parametric plot!! ...
2
votes
2answers
67 views

Density plot with list data and preferable boundary

I have a list as ...
0
votes
0answers
21 views

Specifying plot markers (filled diamonds or squares) [duplicate]

I can plot my list data and I can use of specifying circle to show my plot-markers. I used of Mr.Wizard comments on that page. But I don't know how can I fill the circles of those plot-markers with ...
3
votes
1answer
134 views

How can you get the area of a region from an image?

Suppose we have a square of side "L" m, How can I calculate the hatched area, if the corners of the square are centers of circles. It can be generalized to any region? edit: This is the result I ...
2
votes
1answer
76 views

Marking distance with an arrow that has lead lines

I have: ...
0
votes
0answers
35 views

Graphing imaginary numbers [duplicate]

I'm solving [Sum(i=1..p) x^i] = 100. The max value of 25 is arbitrary. I would like to see how the solutions look in 2-dimensional space. How do I view an imaginary number on a Cartesian coordinate ...
4
votes
2answers
102 views

ColorFunction uses graphics coordinates instead of Plot3D coordinates

I've had the same effect in Mathematica 9 and 10. I'm trying to color a 3D Plot with another function, let's call it colorFun ( it should highlight the areas where the colorFun is above a certain ...
4
votes
1answer
83 views

Remove the extra white-space padding introduced by implicit use of Inset in GraphicsColumn

Simple Context This is a question about understanding how Inset really works and how GraphicsColumn and the like automatically ...
18
votes
3answers
418 views

How to implement the sample-point process like the built-ins of Mathematica?

Consider this: pts = {{0, 0}, {1, 1}, {2, -1}, {3, 0}, {4, -2}, {5, 1}}; f = BSplineFunction[pts] I can use ParametricPlot to ...
4
votes
1answer
114 views

Adding z-value to mesh lines in Plot3D as is done in ContourPlot

Consider: f[x_, y_] = (x^3 + y^3)/(x^2 + y^2); Plot3D[f[x, y], {x, -1, 1}, {y, -1, 1}, MeshFunctions -> {#3 &}] Which produces this image: Is there a ...
4
votes
2answers
94 views

Plotting results from Findroot

I know this has been asked, but I cannot seem to understand the solutions. What I need to know, because I have my first domiciliary test this Monday, is how to plot the output from ...
0
votes
2answers
72 views

Not seeing line defined in an Epilog option

In the following code, the line defined in Epilog option of my 2nd parametric plot doesn't show up in the content pane of my ...
1
vote
1answer
74 views

Manipulate to determine $\delta$ given $\epsilon$ in continuity question

This is a continuation of a question I posed at: Examining the function $f(x,y)=xy(x^2-y^2)/(x^2+y^2)$. The quest is to analyze the partial derivative $$ f_x(x,y)=\begin{cases} ...
2
votes
1answer
79 views

Still more problems with Fitting, please help

I'm in a little over my head here and I'm fully aware of it, so I'm hoping for some help. I've been assigned to a project where I am given data: http://www.pastebin.ca/3061136 (Example Data) I ...
3
votes
3answers
171 views

Mathematica equivalent to gnuplot's fsteps option?

In a ListLinePlot I can set InterpolationOrder -> 0 to get the equivalent of gnuplot's ...
2
votes
3answers
185 views

Fitting and plotting Weibull distribution

How can I find the best fitted 2-parameter Weibull's distribution (PDF) to describe my data? How can i plot my data and estimated distribution all in one graph? How can I show/compare results of ...
3
votes
2answers
149 views

An informative contour plot

I'm trying to visualise the graph of a function $f(x,y)$ of two real variables using ContourPlot. Here are the things I'm after: The points where $f(x,y)=0$ ...
1
vote
2answers
54 views

Specifying the PlotRange according to a desired center

I have this plot of $f(x)=\ln x$ and the tangent line at $x=e$, and I'd like to specify the PlotRange so that it's the rectangle with its centroid at $(e,1)$, kind ...