PhreeqcUsers Discussion Forum

Welcome Guest
 

  • Forum Home
  • Login
  • Register

  • PhreeqcUsers Discussion Forum »
  • Beginners »
  • BASIC functions »
  • How to plot results from the cells separately
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: How to plot results from the cells separately  (Read 695 times)

Karat

  • Contributor
  • Posts: 2
How to plot results from the cells separately
« on: 26/03/25 08:30 »
Hi all,
I have a solution spread that consists of, let's say, 20 solutions. I want to make one plot that contains results from solutions 1-10 and another plot that has results from solutions 11-20. How do I do that using USER_GRAPH?

Thank you in advance,
Karat
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4000
Re: How to plot results from the cells separately
« Reply #1 on: 26/03/25 14:30 »
This script is a little different because the forum does not maintain the tabs of SOLUTION_SPREAD, but you get the idea.

Code: [Select]
SOLUTION 1-20
END
RUN_CELLS
-cells 1-20
USER_GRAPH 1
    -axis_titles            "Cell number" "pH" ""
    -initial_solutions      true
    -connect_simulations    true
    -plot_concentration_vs  x
  -start
10 IF (cell_no > 10) THEN GOTO 100
20 GRAPH_X cell_no
30 GRAPH_Y -LA("H+")
100 END
  -end
    -active                 true
USER_GRAPH 2
    -axis_titles            "Cell number" "pH" ""
    -initial_solutions      true
    -connect_simulations    true
    -plot_concentration_vs  x
10 IF (cell_no < 11) THEN GOTO 100
20 GRAPH_X cell_no
30 GRAPH_Y -LA("H+")
100 END
END
Logged

Karat

  • Contributor
  • Posts: 2
Re: How to plot results from the cells separately
« Reply #2 on: 03/04/25 13:19 »
Thank you so much, David!
It is clear now:)
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Beginners »
  • BASIC functions »
  • How to plot results from the cells separately
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
  • XHTML
  • RSS
  • WAP2