-
alignedaxis is a special case; for the general solution see:
[http://asymptote.sourceforge.net/FAQ/section6.html#align][1]
Note: to include code in this forum, highlight the code and then press the 101/010 button like this:
real x=1;
real y=2;
[1]: http://asymptote.sourceforge.net/FAQ/section6.html#align.
2009-11-22 02:52:29 UTC by jcbowman
-
Sorry, the formatting is not coming through here. Here is the code with proper linebreaks.
import graph;
real margin=5mm;
// Import the data
// Plot limits
real p_min = 0.0;
real p_max = 4000.0;
picture pic1;
scale(pic1,Linear,Linear);
xlimits(pic1, 0.0, p_max);
ylimits(pic1, 0.0, p_max);
yaxis(pic1,"$q$ (kPa)",LeftRight,RightTicks(N=4));
xaxis(pic1,"$p$...
2009-11-22 01:19:53 UTC by rjaeger1
-
Hi,
I'm trying to modify alignedaxis.asy to plot some data that I have. I have no problem plotting the data, but once I change the axes in the example, I lose the alignment. Here is what I have reduced the example to:
import graph;
real margin=5mm;
// Import the data
// Plot limits
real p_min = 0.0;
real p_max = 4000.0;
picture pic1;
scale(pic1,Linear,Linear);...
2009-11-22 01:16:06 UTC by rjaeger1
-
The reason we didn't implement that is that seems just as straightforward to do this:
real[] values={1/3,pi};
string format[]={"Value1: %f"," Value2: %.2f"};
for(int i=0; i < values.length; ++i)
write(format(format[i],values[i]),none);.
2009-11-21 16:46:57 UTC by jcbowman
-
As mentioned in many forum posts, to work around the bug in your graphics driver/card that is causing the black stripes, you need to reduce maxtile from the default (0,0), which denotes the screen dimensions. For example, try something like:
asy -tex pdflatex -noprc -maxtile=(400,400) test.asy
Alternatively, update to a fully functional graphics driver/card. On UNIX systems one needs...
2009-11-21 16:33:15 UTC by jcbowman
-
I was busy reading forum posts to get up to speed with the new features and options.
The example asy code
import three;
picture pica;
real a = 2;
real b = 1.5;
real c = 3;
path3 bottomcircle=(a,0,0)..(0,a,0)..(-a,0,0)..(0,-a,0)..cycle;
path3 topcircle=(b,0,c)..(0,b,c)..(-b,0,c)..(0,-b,c)..cycle;
path3 p;
real fraction;
real pa,pb;
int i;
unitsize(1cm,1cm);...
2009-11-21 10:02:20 UTC by gummybears
-
Do not try to understand the last line of my previous message: it was a first attempt to speak correctly English and I forgot to erase it.
I cannot edit my message to delete it. :-((.
2009-11-21 09:21:00 UTC by gmarris
-
Hello,
I dreamed that we could write this: a command "format" where the parameter "values" would be of "real[]" type.
format("........%f.........%.2f.........%f.......",values)
:-)
GaƩtan M.
with values from real[] .
2009-11-21 09:13:51 UTC by gmarris
-
You forgot to post your example. Without a minimal example that illustrates the issue, you can't expect much help from anyone on this forum.
You also should first read recent [forum posts][1] on this same topic:
[1]: http://sourceforge.net/projects/asymptote/forums/forum/409349/topic/3453776.
2009-11-21 06:44:01 UTC by jcbowman
-
I read the documentation of module three. Did some test runs
with -render=0.
Parts of the drawings are not drawn or I see dashed lines,
where solid lines should be drawn. Also some labels are not drawn.
Don't understand what to do now, with Asymptote 1.33 I could produce nice 3d drawings. Now these drawings don't show up correctly ?.
2009-11-21 05:38:10 UTC by gummybears