Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plotting]

The tag has no usage guidance.

0
votes
1answer
58 views

SciPy 3d plotting Integral of $\int x^y dx$ for $y$ in $[-4,4]$

Ideally, I would like to get the symbolic/algebraic integral of the function and plot the resulting surface in 3d. I am not sufficiently versed in SciPy to know if this is even really possible.
0
votes
0answers
26 views

How to load several arrays from .txt and plot points with specifications?

I need to load data from a .txt file (<3KB) in Matlab. The structure of the data is as follows: s_0.4 2.00869311294470 1.90140098201689 4.00117387799144 2.73028990891229 ... ...
0
votes
2answers
51 views

Plot a multi-variable equation in (discontinuous) regions

The goal is to display the relation between K and E in the following equation: $$\cos(K) = 5 \text{sinc}( 5.12\sqrt{E} ) - \cos(5.12\sqrt{E} )$$ The intended result is: However, using the following ...
0
votes
1answer
60 views

How to report non-monotonic runtimes in convergence plots

Let's say I have an algorithm that can be tuned by a parameter $h>0$ and is expected to converge as $h\to 0$. I want to study the computational complexity of this algorithm, i.e., how the ...
1
vote
0answers
470 views

Software for easy spherical coordinate plotting from data file

Does anyone have any suggestions for good open source plotting software which has good graphical spherical coordinate plotting (from a data file). I have a three column data file where column 1 is $\...
0
votes
1answer
32 views

Plotting using 'colorbar' in MATLAB [closed]

I am trying to plot a figure similar to the one attached here,I tried searching how to do a similar kinds of plot and i found about 'colormap','colorbar' in MATLAB. Actually I want to plot this ...
0
votes
1answer
255 views

Strong scalability plot, HPC

I have to create a strong scalability plot, which measures the execution time for a numberOfThreads =1,2,4,8,16 with size=1024. ...
1
vote
1answer
58 views

Plotting the same function multiple times on the same set of axes but with different parameters [Python]

I am currently trying to plot a function which describes linear perturbation growth in cosmology for different world models. I would like to be able to have all the curves on the same set of axes, but ...
1
vote
1answer
197 views

Plotting Excel data with Julia [closed]

Let me first be clear that I'm still new to Julia. I need to plot time series data contained in an Excel file using Julia. So far I couldn't find any packages for that. The only workaround I found ...
2
votes
1answer
132 views

Contour plot of a scalar function over the complex domain in MATLAB

I'm trying to make a 2D contour plot of a function with a complex input and a real output, namely: $f(z=x+iy)= |z^2-3z|$, on MATLAB. I want to make a contour plot of f, such that the axes are $(x,y)$, ...
1
vote
1answer
267 views

2d slice cut of tetrahedral mesh in tecplot 360 ex [closed]

I have made a 2d slice cut of a 3 dimension figure. When I select "mesh" to display the mesh on the slice, tecplot seems to connect the vertices in a strange way (it seems like two 2d meshes are ...
1
vote
1answer
140 views

3-dimensional plotting with nonuniform grids

I have 3 variables I am considering: time (t), 1-dimensional space (x), and intensity (I). I would like to plot the intensity in the z-axis as a function of t and x (the latter two variables would ...
1
vote
2answers
329 views

Generating 4D Plots in Matlab

I have some data in the form of: ...
0
votes
1answer
171 views

Nice plot of f(x)

A user has this nice graph of f(x) on his profile and I want to learn how to do it in matlab or Gnu octave. ...
0
votes
1answer
233 views

How to plot selection over time for only components, but not magnitute. of a vector in paraview?

I am doing a time evolution analysis for a structure and have already got the displacement result, which is a vector including x and y components. And I want to plot the time evolution of x and y ...
5
votes
1answer
853 views

What determines the usual chemistry textbook plots of atom orbitals?

In elementary chemistry textbooks you often have pictures like the following one: Are there any conventions how to get them? I am not sure, but I guess that it are contour plots with only one iso-...
1
vote
1answer
347 views

How to make scatter plots of scalar fields with free software?

How can I make a scatter plot like the following, where the density of points represents the magnitude of the scalar field at that point. Consider for example the probability density for an atom: I ...
5
votes
1answer
247 views

Does this Algorithm (probably Fourier like) Exist for 2D Shapes? [closed]

Update: Someone changed the title to this post to a possible answer ("Fourier decomposition of parametric shapes") but I changed it to a different title as that makes it clear what I was asking. As I ...
0
votes
3answers
214 views

How to plot a price level matrix in Matlab?

I have a matrix P of m rows and n columns. P(i,j) contains the price of occupying position i at time j. I want to plot this in Matlab but in a way to get some kind of density plot with different price ...
1
vote
0answers
85 views

How do I make a plot representing a vector field?

The plot shows the force magnitude and direction at every point in the semicircle. In matlab or mathematica we can make plots only with magnitudes vs positions in 2D graph. But how do I make a plot ...
0
votes
2answers
2k views

Having smoother contour plots in MATLAB

I have a $80\times200$ matrix, and I want to plot its contents with the contourf command in MATLAB, as follows: \begin{align} &\text{[C,h] = contourf(mat,100);}\\ &\text{set(h,'LineColor','...
0
votes
3answers
88 views

Software recommendation for plotting data from lab tests

I have several files of data created by LabView of hydraulic pressure testing over the course of a few days. This data is mostly time with various pressure and temperature measurements. Can you ...
1
vote
1answer
114 views

How to change level of contours in animation for Tecplot360

I am working on a transient heat transfer problem. The problem that I have is as the time goes the range of temperature is changing but Tecplot only use one sort of levels for contour for all of time ...
0
votes
1answer
82 views

Visualise data under Tecplot

I have a set of data that I need to visualise under Tecplot, the file format is for example: ...
1
vote
1answer
262 views

Satisfying Periodic Boundary Conditions while plotting spherical particles inside a cube

I am trying to plot spherical particles in a cube of fixed dimension in matlab. I face a problem here where the center of the sphere is too close to the edge of the cube in this case the rest of the ...
3
votes
2answers
436 views

Should a colorbar have constant values throughout a simulation?

The default option for matplotlib's pcolormesh (also true for VisIt and I think also true for Matlab) is to allow the maximum and minimum of a colorbar vary. Which ...
1
vote
0answers
87 views

How to curve fit an unknown function?

I have data which can be described by $y=f(x,z)$ where $z$ varies from 170 ~ 154. Now values given by $ks$ are known sample values that equals value given in the table header, $uks$ are unknown ...
2
votes
2answers
76 views

Adaptive plotting of two-variable functions $z=f(x,y)$ algorithm pseudocode?

I am looking for explanations of algorithms to adaptively sample a function of two variables $f(x,y)$, in a given domain $x_0\le x \le x_1$, $y_0\le y \le y_1$. Intuitively, I want to sample more ...
1
vote
2answers
859 views

How to calculate grid coordinates of the centroid based on four attributes in a spider chart

04/06/15 After more research I found a candidate algorithm but it seems to be incomplete. I have also reworked the spider chart to number all of the boxes using an x,y ((origin = 1,1) lower left) ...
2
votes
1answer
170 views

How to plot feasible design space of a Generic Multiobjective Optimization problem?

As you know, a generic Multiobjective optimization problem can be stated as follows: $min{\space}F(\bf{X})=[f_1(x),...,f_n(x)]$ $h_k(x)=0{\space\space\space} k=1,...,n_e$ $g_i(x)\leq0{\space\space\...
1
vote
2answers
69 views

Help on writing sofware: general guidelines, in particular separation of computation and visualization

Although I already did some work in the intersection of theory and simulation I'm still very new to this field and I need some guidance. If anybody can give some recommendations for introductory ...
1
vote
1answer
2k views

2D cross section from 3D surface

I am trying to apply the "restoring force surface" method to a dynamic linear system. The idea behind this method is that, knowing acceleration, displacement, velocity and input force it is possible ...
1
vote
0answers
438 views

Plotting renormalization group flow diagram from recursion relation

How do I plot a flow diagram (given certain initial conditions, the trajectory in y-x space) for a RG (renormalization group) flow given by the following recursion relations? \begin{eqnarray} x^{\...
2
votes
2answers
194 views

single-variate function variational Intensity Plot for Matlab

I'm wondering if it's possible to create functional intensity plots in matlab. Examples of what I'm looking for are below found in this paper: These figures were (guessing) probably made in R, but is ...
3
votes
1answer
4k views

Plot a surface from data sets in MATLAB

I tried to plot a surface in MATLAB but, since it is the first time I had to do something like this, I need a confirmation on the process I followed because it is important for my project to plot the ...
0
votes
1answer
297 views

How to plot function with evenly spaced x values in Matlab

I'm trying to plot this function func=exp(x-sqrt(2))-cos(x-sqrt(2))-(x-sqrt(2)) in Matlab using 101 evenly spaced x values. If I just say ...
7
votes
2answers
2k views

How can one produce a proper streamline plot?

I recently had trouble producing a proper streamline plot in Mathematica, and apparently the problem is a good bit harder than I appreciated. I would like to know if there exist general algorithms to ...
4
votes
2answers
5k views

Visualising Maxwell's equations using MATLAB

I asked this question to help me understand what is going on in one of Maxwell's equations. I am happy with following through the maths on paper now, but would like to use MATLAB to take it one step ...
1
vote
0answers
809 views

algorithm Matlab function 'stream2' and 'stream3' use to compute streamline

Can anyone explain how the MATLAB functions: stream2(x,y,z,u,v,startx,starty) and stream3(x,y,z,u,v,startx,starty) compute stream lines from vector data u and v? In the stream2.m file, it calls the ...
0
votes
1answer
498 views

Border Mapping of Scatter plot

I have scatter plot and I want to trace the border of that. for example: Plot: and I wanted it traced: Or at least wanted to know the border points? Also, is it possible to detect if any point ...
6
votes
2answers
650 views

Python package for (adaptive) function plotting

Are there any mature Python packages that can plot functions, and possibly use adaptive sampling? I am looking to pass only a function (can be a numerical black box) and a range, and expect a plot as ...
1
vote
1answer
56 views

Visualizing certain sets

I'm not sure if this question is appropriate for this site, so I appologize in advance if it's not. For the purpose of a certain project I am working on, I would like to have the following sets ...
1
vote
1answer
2k views

WRL and VRML to Matplotlib/Numpy

I would like to import (or parse ??) a WRL/VRML file format in python in order to work the data with Matplotlib. Is there any way of converting this file format into plottable numpy arrays ? I ...
1
vote
1answer
540 views

What is Precision-Recall Curve? [closed]

I have a data mining assignment where I make a content-based image retrieval system. I have 20 images of 5 animals. So in total 100 images. My code returns the 10 most relevant images to an input ...
3
votes
3answers
5k views

Obtaining a 2D profile from a 3D surface

I am plotting a saturation field (as the solution of a finite element problem, using trisurf in MATLAB). Ideally, I would like to obtain the two-dimensional profile ...
1
vote
2answers
10k views

How to plot probability density function in MATLAB?

I'm trying to get a frequency plot, or PDF (probability density function) plot for my biometrics project in MATLAB. I have two vectors genuine_scores and ...
1
vote
1answer
65 views

Line scan in a 2D histogram

So I have a 2D histogram, in the third dimention are the counts. What I want to achieve is by choosing two random position, make a plot of a 1D histogram along the line that passes through the two ...
10
votes
2answers
5k views

How do I plot the surface of a 4D plot?

I am trying to plot the wave function for a particle in a 3D box. This requires me to plot 4 variables: x, y, z axes and the probability density function. The probability density function is: ...
2
votes
4answers
10k views

What's the simplest way to graph a 2d array generated in C++ using Windows 7?

This was so much easier in Python (so much so that I'm considering going back to matplotlib for data analysis). But really, trying to figure out ROOT and Boost graph library and mathgl makes me want ...
2
votes
1answer
970 views

tecplot 360: convert face-centered data to node data

Is there a way in Tecplot to change data from face-centred to node-based? If I look at the plot, it seems to me that internally Tecplot is changing the data from being at the centre of the face to ...