Fwd: axis text do not plot
Nicholas Jankowski <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <CABNpfR_hZ3o58LpiFg1utHF712hCM5c1v+S_NeZx_o8=FOsKzA@mail.gmail.com> |
Please keep the octave help list copied on replies. ---------- Forwarded message --------- From: Bjørn Kvamme <[email protected]> Date: Sun, Jun 20, 2021 at 3:09 AM Subject: Re: axis text do not plot To: <[email protected]> Hello, Normally this set-up provides a black surface but for this input-file the Facecolorsentences seems inactive since I get the same plot if I remove the two sentences. I like the way of the plot but the coloors are not right. A drayscale would be best load thermoeqall x3=thermoeqall(:,1) y3=thermoeqall(:,2) z3=thermoeqall(:,3) xv = linspace(min(x3), max(x3), 1000); yv = linspace(min(y3), max(y3), 1000); [X,Y] = meshgrid(xv, yv); Z = griddata(x3, y3, z3, X, Y); A = mesh (X, Y, Z); set(A(1),'FaceColor','k') meshc(X,Y,Z) grid on xlabel('Temperature (K)','Fontsize',8) ylabel('Pressure (Bars)','Fontsize',8) zlabel('Hydrate Gibbs free energy (kJ/mole)','Fontsize',10) set(gca,'fontsize',10) man. 3. mai 2021 kl. 14:14 skrev Nicholas Jankowski <[email protected]>: > > > On Sun, May 2, 2021 at 9:54 AM bjkvamme <[email protected]> wrote: > >> load hyd3D >> >> > I'm unable to reproduce your results. Obviously I don't have the starting > dataset (hyd3D). but if I try to produce a meshc with a dummy dataset, and > then follow the meshc with your annotation commands, I get results that > show the axis labels. > > [X, Y] = meshgrid (linspace (-3, 3, 40)); > Z = sqrt (abs (X .* Y)) ./ (1 + X.^2 + Y.^2); > meshc (X, Y, Z); > xlabel ("Delta x",'Color',"k",'fontsize',10) > ylabel ("T (K)",'Color','k','fontsize',10) > zlabel ("Diff. (kJ/mole)",'Color','k','fontsize',10) > set(gca,'fontsize',10) > grid on > > What version of Octave, operating system, and graphics toolkit are you > running? (type graphics_toolkit at the command line). Can you try the > plot using other toolkits? > > graphics_toolkit('qt') > graphics_toolkit('fltk') > graphics_toolkit('gnuplot') > > and see if you get the same or different results? On my system (Octave > 6.2.0 on windows) i get the same results showing axis labels using all > three with all three toolkits, but it might help us determine what's > causing your error. > >
thermoeqall
(application/octet-stream, 691.4 KB) - not displayed
test.jpg
(image/jpeg, 26.3 KB) - not displayed