اولین بار است که به اینجا می‌آیید؟ راهنمای سایت را بخوانید!
–1 رای
4.0k بازدید

با سلام. چطور میتونم نمودارهایی که توی متلب کشیدم رو فارسی کنم برای وارد کردن در پایان نامه؟ (قسمتهای title,xlabel,ylabelو legend) . فایل پیوست شده شکلی است که توی متلب در قالب eps ذخیره کردم ولی میخوام نوشته های انگلیسی، فارسی باشند. ممنون و تشکر.

سلام
برچسب «برچسب» را حذف کنین بیزحمت.
فایلی ضمیمه نشده.
میشه با tikz مثلا یک کادر سفید روی کلمه‌های لاتین بندازین. سپس با tikz بنویسین رویش.
یا می‌تونین با برنامه‌ای مثلا Corel Draw و ... عکس‌ها را ادیت کنین.
ویرایش شده توسط
توسط (7.6k امتیاز)
از بسته overpic باید استفاده کنی.
توسط (25.0k امتیاز)
خیلی ممونم.
توسط (3 امتیاز)
با سلام و خسته نباشید
ببخشید در مورد این بسته یکم توضیح بیشتر میشه بدین،اصلا چطور به این بسته دسترسی داشته باشیم.
متاسفانه من اشنایی بیشتری  با زبان متلب ندارم و مشکل همون دوستمون رو دارم
با تشکر
توسط (5 امتیاز)

1 پاسخ

0 رای

hi, use matlab2tikz to convert your plot to .tex then you could utilize the xepersian package for the rest, just edit the title, x label and so on with what you want, here is an example.

clc;clear;clf;
pout=100:100:600;
peff_switching=[86.3,85.4,84.9,84.6,84.4,84.2];
peff_pwmPrec=[81.7,82.1,82.4,82.5];
peff_pwsm11l=[87.3,87.5,87.6,87.5,87.4,87.5];
mf3=figure(1)
plot(pout,peff_switching,'-ok','linewidth',0.8);hold on; box off;
plot(pout(1:4),peff_pwmPrec,'-^r','linewidth',0.8);
plot(pout,peff_pwsm11l,'-sb','linewidth',0.8);

Legend={'Switching Amplifier','PWM Amplifier capable of power recovery ','11 Level PWSM Amplifier'};
xlabel('Power output');ylabel('Power efficiency');
legend(Legend,'Location','southeast');
matlab2tikz('figurehandle',mf3,'filename','figeff1.tex' ,'standalone', true,'floatFormat','%.3g')

MATLAB Plot
gives us,

% This file was created by matlab2tikz.
%
%The latest updates can be retrieved from
%  http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
\documentclass[tikz]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{pgfplots}
\usepackage{grffile}
\pgfplotsset{compat=newest}
\usetikzlibrary{plotmarks}
\usetikzlibrary{arrows.meta}
\usepgfplotslibrary{patchplots}
\usepackage{amsmath}

\begin{document}
\begin{tikzpicture}

\begin{axis}[%
width=4.521in,
height=3.566in,
at={(0.758in,0.481in)},
scale only axis,
xmin=100,
xmax=600,
xlabel style={font=\color{white!15!black}},
xlabel={Power output},
ymin=81,
ymax=88,
ylabel style={font=\color{white!15!black}},
ylabel={Power efficiency},
axis background/.style={fill=white},
axis x line*=bottom,
axis y line*=left,
legend style={at={(0.97,0.03)}, anchor=south east, legend cell align=left, align=left, draw=white!15!black}
]
\addplot [color=black, line width=0.8pt, mark=o, mark options={solid, black}]
  table[row sep=crcr]{%
100	86.3\\
200	85.4\\
300	84.9\\
400	84.6\\
500	84.4\\
600	84.2\\
};
\addlegendentry{Switching Amplifier}

\addplot [color=red, line width=0.8pt, mark=triangle, mark options={solid, red}]
  table[row sep=crcr]{%
100	81.7\\
200	82.1\\
300	82.4\\
400	82.5\\
};
\addlegendentry{PWM Amplifier capable of power recovery}

\addplot [color=blue, line width=0.8pt, mark=square, mark options={solid, blue}]
  table[row sep=crcr]{%
100	87.3\\
200	87.5\\
300	87.6\\
400	87.5\\
500	87.4\\
600	87.5\\
};
\addlegendentry{11 Level PWSM Amplifier}

\end{axis}
\end{tikzpicture}%
\end{document}

pdfLaTeX output
with a simple edit,

% This file was created by matlab2tikz.
%
%The latest updates can be retrieved from
%  http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
\documentclass[tikz]{standalone}
%\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{pgfplots,amsmath}
\usepackage{grffile}
\pgfplotsset{compat=newest}
\usetikzlibrary{plotmarks}
\usetikzlibrary{arrows.meta}
\usepgfplotslibrary{patchplots}
\usepackage[]{xepersian}%displaymathdigits=default
\settextfont[Scale=1]{XB Yas}
\setdigitfont[Scale=1]{XB Yas}

\begin{document}
\begin{tikzpicture}

\begin{axis}[%
grid=both,
width=4.521in,
height=3.566in,
at={(0.758in,0.481in)},
scale only axis,
xmin=100,
xmax=600,
xlabel={\rl{توان خروجی، $\mathrm{kW}$}},
ymin=81,
ymax=88,
ylabel={\rl{بازده توان، $\%$}},
axis x line=bottom,
axis y line=left,
legend style={at={(0.97,0.01)}, anchor=south east, legend cell align=right, align=right}
]
\addplot [color=black, line width=0.8pt, mark=o, mark options={solid, black}]
  table[row sep=crcr]{%
100	86.3\\
200	85.4\\
300	84.9\\
400	84.6\\
500	84.4\\
600	84.2\\
};
\addlegendentry{\rl{تقویت کننده سوئیچینگ}}

\addplot [color=red, line width=0.8pt, mark=triangle, mark options={solid, red}]
  table[row sep=crcr]{%
100	81.7\\
200	82.1\\
300	82.4\\
400	82.5\\
};
\addlegendentry{\rl{تقویت کننده \lr{PWM} با قابلیت بازیافت توان}}

\addplot [color=blue, line width=0.8pt, mark=square, mark options={solid, blue}]
  table[row sep=crcr]{%
100	87.3\\
200	87.5\\
300	87.6\\
400	87.5\\
500	87.4\\
600	87.5\\
};
\addlegendentry{\rl{تقویت کننده \lr{PWSM} یازده سطحی}}

\end{axis}
\end{tikzpicture}%
\end{document}

thus,
XeLaTeX output

this is not ideal for a large number of figure.
توسط (5 امتیاز)
پرسیدن سوال
وب‌سایت پرسش و پاسخ پارسی‌لاتک جایی برای پرسش و پاسخ درباره سیستم حروف‌چینی لاتک و بسته زی‌پرشین است. در اینجا می‌توانید سوال‌های خود را بپرسید و به سوال‌های دیگران پاسخ دهید.

محبوب‌ترین برچسب‌ها

رفع خطا جدول xepersian مراجع ریاضی‌نویسی شکل bidi فونت فهرست مطالب شماره‌گذاری منابع پانویس بیب‌تک tikz parsilatex تک‌لایو بیمر اسلاید زی‌پرشین پاورقی bibtex سربرگ نماد رسم شکل فرمول‌نویسی قالب ارجاع‌دهی biditexmaker هدر ویرایشگر beamer واژه‌نامه اندازه فونت texstudio عنوان فصل ماتریس اعمال نشدن تغییرات در پی‌دی‌اف رسم جدول شماره صفحه bidipresentation حاشیه رنگ عنوان شکل اسلاید فارسی محیط قضیه گراف مکان شکل tikzpicture حروف‌چینی کد شماره فصل enumerate tabriz_thesis نمایه align زیرنویس شکل کادر itemize فهرست اشکال الگوریتم عدم اجرا listings نیم‌فاصله متن لاتین و فارسی بسته فاصله بین خطوط قالب پایان‌نامه فرمول نصب تک‌لایو فارسی‌تک hyperref شماره فرمول glossaries کپشن نمودار خروجی لاتک حروف‌چینی چندستونی فونت فارسی و انگلیسی ماکرونویسی biditools شماره پاورقی پیوست‌ سوال امتحانی فاصله‌گذاری فرمول چندضابطه‌ای extrafootnotefeatures subfigure biditufte-book header texmaker pdf خطا tex longtable تصویر شمارنده زیرنویس texlive2015 رسم نمودار شماره‌گذاری صفحات پایان نامه دیاگرام فهرست جداول میک‌تک texlive2016 تنظیم جدول آکولاد kashida تورفتگی texworks caption اندیس اعداد فارسی lollipop iust-thesis multicol فصل‌نویسی شعر سوال چهارگزینه‌ای بولد فاصله عمودی pgfplots xindy چپ‌چینی اوبونتو میکروسافت ورد قاب geometry xelatex texlive fancyhdr وسط‌چینی تک لایو 2015 tcolorbox عنوان بخش شماره گذاری به‌روزرسانی بسته aimc46 صفر توخالی فرمول طولانی بیرون‌زدگی کاما پوستر فاصله سطرها نوشتافت شکست خط tex-programming فونت اعداد قرآن tabriz-thesis ایتالیک winedt جستجوی معکوس فلش جایابی تصویر فهرست تصاویر قالب کتاب پاراگراف‌بندی بازیابی اطلاعات هایپرلینک فهرست نمادها شمارنده فصل font محیط ریاضی رسم کادر جداکننده جدول طولانی به‌روزرسانی شماره‌گذاری فرمول algorithm2e فونت بولد proof equation bidipoem eps جدول افقی عکس پانویس چندستونی کمک مالی فاصله خطوط حروف‌چینی شعر زیرشکل minipage قلم پانویس پاراگرافی ltrfootnote پیوست computeautoilg متن فارسی و انگلیسی فرمول چندخطی neveshtuft غلط‌گیری املایی تک‌پارسی پیکان لاتکس tabular baselineskip شماره قسمت قسمت عنوان جدول
...