Difference between revisions of "Conc plot.m"
(Created page with "{{DISPLAYTITLE:conc_plot.m}} __NOTOC__ 2D microfluidic concentration plotting function. Uses mesh tessellation information to plot concentrations as vertical bars. This functi...") |
(Update function See also links and function index membership) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:conc_plot.m}} __NOTOC__ | {{DISPLAYTITLE:conc_plot.m}} __NOTOC__ | ||
| + | |||
2D microfluidic concentration plotting function. Uses mesh tessellation information to plot concentrations as vertical bars. This function should be called after [[mesh_plot.m]] has drawn the mesh. | 2D microfluidic concentration plotting function. Uses mesh tessellation information to plot concentrations as vertical bars. This function should be called after [[mesh_plot.m]] has drawn the mesh. | ||
==Syntax== | ==Syntax== | ||
| − | + | conc_plot(spin_system,conc,obs) | |
| − | == | + | ==Parameters== |
| − | + | spin_system - Spinach spin system object containing | |
mesh and tessellation information | mesh and tessellation information | ||
conc - concentrations as a column vector with | conc - concentrations as a column vector with | ||
the same number of elements as the num- | the same number of elements as the num- | ||
| − | ber of Voronoi cells | + | ber of Voronoi cells; these will deter- |
| + | mine bar heights | ||
| + | |||
| + | obs - up to three observables as columns of | ||
| + | a matrix with the same number of rows | ||
| + | as conc; these will be normalised and | ||
| + | mapped into HSV colour space for each | ||
| + | Voronoi cell bar. Options: | ||
| + | |||
| + | one column: [xy_phases] | ||
| + | |||
| + | two columns: [xy_phases xy_amps] | ||
| + | |||
| + | three columns: [xy_phases xy_amps z] | ||
==Outputs== | ==Outputs== | ||
| − | + | the function updates a figure created by [[mesh_plot.m]] | |
==See also== | ==See also== | ||
| − | |||
| + | [[mesh_plot.m]], [[comsol_conc.m]], [[comsol_import.m]], [[comsol_mesh.m]], [[comsol_velo.m]], [[mesh_crop.m]], [[mesh_inact.m]], [[mesh_preplot.m]], [[mesh_vorn.m]], [[Import,_export,_and_visualisation]] | ||
''Version 2.8, authors: [[Ilya Kuprov]]'' | ''Version 2.8, authors: [[Ilya Kuprov]]'' | ||
Latest revision as of 18:35, 6 June 2026
2D microfluidic concentration plotting function. Uses mesh tessellation information to plot concentrations as vertical bars. This function should be called after mesh_plot.m has drawn the mesh.
Syntax
conc_plot(spin_system,conc,obs)
Parameters
spin_system - Spinach spin system object containing
mesh and tessellation information
conc - concentrations as a column vector with
the same number of elements as the num-
ber of Voronoi cells; these will deter-
mine bar heights
obs - up to three observables as columns of
a matrix with the same number of rows
as conc; these will be normalised and
mapped into HSV colour space for each
Voronoi cell bar. Options:
one column: [xy_phases]
two columns: [xy_phases xy_amps]
three columns: [xy_phases xy_amps z]
Outputs
the function updates a figure created by mesh_plot.m
See also
mesh_plot.m, comsol_conc.m, comsol_import.m, comsol_mesh.m, comsol_velo.m, mesh_crop.m, mesh_inact.m, mesh_preplot.m, mesh_vorn.m, Import,_export,_and_visualisation
Version 2.8, authors: Ilya Kuprov