close all; clear all;

graphics_toolkit("gnuplot");

t=linspace(0,2*pi,100);
plot(t, sin(t));

print("test.pdf", "-dpdfcairo");

figure;

plot(t, sin(t));
annotation("textbox", [0.5 0.5 2 1], "string", "some note");

print("test2.pdf", "-dpdfcairo");