|
From: | Bjørn Kvamme |
Subject: | Re: axis text do not plot |
Date: | Sun, 20 Jun 2021 15:18:28 +0200 |
Please keep the octave help list copied on replies.---------- Forwarded message ---------
From: Bjørn Kvamme <bjkvamme@gmail.com>
Date: Sun, Jun 20, 2021 at 3:09 AM
Subject: Re: axis text do not plot
To: <jankowskin@asme.org>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 bestload thermoeqallx3=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 onxlabel('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 <jankowskin@asme.org>:On Sun, May 2, 2021 at 9:54 AM bjkvamme <bjkvamme@gmail.com> wrote:load hyd3DI'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 onWhat 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.
[Prev in Thread] | Current Thread | [Next in Thread] |